acts_as_customized_attributes 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d619c61ea22005521269f20ec1206dd9c1599a3e
4
- data.tar.gz: 4bcd4b8f81a3cddf5d8f16d5650335240a7d9489
3
+ metadata.gz: 66909ffe29f3412051d00e1851ddb4d29b37497d
4
+ data.tar.gz: 91c0287a9a38d46ac213c0d3429a477880f004e1
5
5
  SHA512:
6
- metadata.gz: b1964c9d218ea01714adfeddd2e5aa004b5c7ac041e424310be77306027cc6cccf5327dcf766d6dda16cf8ff59880262df194599789379f6c88f6a76709b9a58
7
- data.tar.gz: 3d78188a4718111a3a4f0a5fa8b3c962055f56156dcabbfbaea436ad22478c570de4ff582cae503631462494bef24777a4a2d9070ea876c684ce405e4f560d75
6
+ metadata.gz: 274aff8777cb13608d640a93943bc5c78459827311846eaef9f6749dca4a25637d65cecd80510f2049981494660102271cde01f50c7ed81bc82b0826633bd89c
7
+ data.tar.gz: 10e0878e191e5bc3effba072b9b7f87cd132dd165679cab0153d9f5fa9173354db2244ce402905c5dd4286d17aaea6934eefbbc012a15ecd76852c49368c19ca
@@ -31,15 +31,20 @@ module ActsAsCustomizedAttributes::ClassMethods
31
31
  end
32
32
 
33
33
  def self.cache_name_to_id
34
+ reset_cache_name_to_id if Rails.env.test? # Always reset when testing to avoid caching problems
34
35
  update_cache_name_to_id unless @cache_name_to_id
35
- @cache_name_to_id
36
+ @_cache_name_to_id
37
+ end
38
+
39
+ def self.reset_cache_name_to_id
40
+ @_cache_name_to_id = nil
36
41
  end
37
42
 
38
43
  # Initializes / reloads the cache.
39
44
  def self.update_cache_name_to_id
40
- @cache_name_to_id = {}
45
+ @_cache_name_to_id = {}
41
46
  find_each do |data_key|
42
- @cache_name_to_id[data_key.name] = data_key.id
47
+ @_cache_name_to_id[data_key.name] = data_key.id
43
48
  end
44
49
  end
45
50
 
@@ -43,12 +43,12 @@ module ActsAsCustomizedAttributes::InstanceMethods
43
43
  end
44
44
 
45
45
  def customized_attributes
46
- hash = {}
46
+ attributes_hash = {}
47
47
  data.each do |data_i|
48
48
  key_name = self.class.aaca_key_class.name_for_id(data_i.data_key_id)
49
- hash[key_name.to_sym] = data_i.value
49
+ attributes_hash[key_name.to_sym] = data_i.value
50
50
  end
51
51
 
52
- hash
52
+ attributes_hash
53
53
  end
54
54
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ActsAsCustomizedAttributes
3
- VERSION = "0.0.10".freeze
3
+ VERSION = "0.0.11".freeze
4
4
  end
@@ -895,3 +895,483 @@ DETAIL: Key (data_key_id, resource_id)=(26, 23) already exists.
895
895
   (0.1ms) SAVEPOINT active_record_1
896
896
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
897
897
   (0.1ms) ROLLBACK
898
+  (0.1ms) BEGIN
899
+  (0.9ms) SAVEPOINT active_record_1
900
+ SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "dgonzales@latz.net"], ["created_at", "2017-03-07 10:33:14.005664"], ["updated_at", "2017-03-07 10:33:14.005664"]]
901
+  (0.2ms) RELEASE SAVEPOINT active_record_1
902
+  (0.1ms) SAVEPOINT active_record_1
903
+ SQL (0.5ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 25], ["created_at", "2017-03-07 10:33:14.025026"], ["updated_at", "2017-03-07 10:33:14.025026"]]
904
+  (0.1ms) RELEASE SAVEPOINT active_record_1
905
+ UserDataKey Load (0.6ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
906
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
907
+  (0.4ms) SAVEPOINT active_record_1
908
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
909
+ SQL (0.2ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:14.037845"], ["updated_at", "2017-03-07 10:33:14.037845"]]
910
+ UserDataKey Load (0.3ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
911
+  (0.1ms) RELEASE SAVEPOINT active_record_1
912
+ UserData Load (0.3ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 25], ["data_key_id", 28]]
913
+  (0.1ms) SAVEPOINT active_record_1
914
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
915
+ SQL (0.6ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 28], ["resource_id", 25], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:14.066108"], ["updated_at", "2017-03-07 10:33:14.066108"]]
916
+  (0.1ms) RELEASE SAVEPOINT active_record_1
917
+ UserData Load (0.5ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 25 ORDER BY "user_data"."id" ASC LIMIT 1
918
+ UserData Load (0.5ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 25 ORDER BY "user_data"."id" ASC LIMIT 1
919
+  (0.2ms) SAVEPOINT active_record_1
920
+ UserDataKey Load (0.3ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
921
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
922
+  (0.2ms) ROLLBACK
923
+  (0.1ms) BEGIN
924
+  (0.1ms) SAVEPOINT active_record_1
925
+ SQL (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "jlittle@vimbo.name"], ["created_at", "2017-03-07 10:33:14.100290"], ["updated_at", "2017-03-07 10:33:14.100290"]]
926
+  (0.1ms) RELEASE SAVEPOINT active_record_1
927
+  (0.1ms) SAVEPOINT active_record_1
928
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 26], ["created_at", "2017-03-07 10:33:14.104154"], ["updated_at", "2017-03-07 10:33:14.104154"]]
929
+  (0.1ms) RELEASE SAVEPOINT active_record_1
930
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
931
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
932
+  (0.9ms) SAVEPOINT active_record_1
933
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
934
+ SQL (0.4ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:14.111210"], ["updated_at", "2017-03-07 10:33:14.111210"]]
935
+ UserDataKey Load (0.9ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
936
+  (0.2ms) RELEASE SAVEPOINT active_record_1
937
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 26], ["data_key_id", 29]]
938
+  (0.1ms) SAVEPOINT active_record_1
939
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
940
+ SQL (0.3ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 29], ["resource_id", 26], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:14.119014"], ["updated_at", "2017-03-07 10:33:14.119014"]]
941
+  (0.1ms) RELEASE SAVEPOINT active_record_1
942
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 26 ORDER BY "user_data"."id" ASC LIMIT 1
943
+  (0.2ms) SAVEPOINT active_record_1
944
+ UserData Load (0.2ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 [["resource_id", 26]]
945
+ SQL (0.2ms) DELETE FROM "user_data" WHERE "user_data"."id" = $1 [["id", 32]]
946
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 26]]
947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
948
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data"."resource_id" = $1 AND "user_data_keys"."name" = 'facebook_email' ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 26]]
949
+  (0.2ms) ROLLBACK
950
+  (0.1ms) BEGIN
951
+  (0.1ms) SAVEPOINT active_record_1
952
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "echapman@kimia.gov"], ["created_at", "2017-03-07 10:33:14.132138"], ["updated_at", "2017-03-07 10:33:14.132138"]]
953
+  (0.1ms) RELEASE SAVEPOINT active_record_1
954
+  (0.1ms) SAVEPOINT active_record_1
955
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 27], ["created_at", "2017-03-07 10:33:14.134088"], ["updated_at", "2017-03-07 10:33:14.134088"]]
956
+  (0.1ms) RELEASE SAVEPOINT active_record_1
957
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
958
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
959
+  (0.1ms) SAVEPOINT active_record_1
960
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
961
+ SQL (0.3ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:14.137685"], ["updated_at", "2017-03-07 10:33:14.137685"]]
962
+ UserDataKey Load (0.3ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
963
+  (0.1ms) RELEASE SAVEPOINT active_record_1
964
+ UserData Load (0.2ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 27], ["data_key_id", 30]]
965
+  (0.1ms) SAVEPOINT active_record_1
966
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
967
+ SQL (0.3ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 30], ["resource_id", 27], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:14.143069"], ["updated_at", "2017-03-07 10:33:14.143069"]]
968
+  (0.1ms) RELEASE SAVEPOINT active_record_1
969
+ UserData Load (0.6ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 27 ORDER BY "user_data"."id" ASC LIMIT 1
970
+ UserDataKey Load (0.3ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
971
+  (0.1ms) SAVEPOINT active_record_1
972
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]]
973
+ UserDataKey Load (0.3ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
974
+ SQL (0.6ms) INSERT INTO "user_data" ("resource_id", "data_key_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["resource_id", 27], ["data_key_id", 30], ["value", "test"], ["created_at", "2017-03-07 10:33:14.150661"], ["updated_at", "2017-03-07 10:33:14.150661"]]
975
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_user_data_on_data_key_id_and_resource_id"
976
+ DETAIL: Key (data_key_id, resource_id)=(30, 27) already exists.
977
+ : INSERT INTO "user_data" ("resource_id", "data_key_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"
978
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
979
+  (0.1ms) ROLLBACK
980
+  (0.4ms) BEGIN
981
+  (0.1ms) SAVEPOINT active_record_1
982
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "fbryant@eayo.name"], ["created_at", "2017-03-07 10:33:14.155360"], ["updated_at", "2017-03-07 10:33:14.155360"]]
983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
984
+  (0.1ms) SAVEPOINT active_record_1
985
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 28], ["created_at", "2017-03-07 10:33:14.157586"], ["updated_at", "2017-03-07 10:33:14.157586"]]
986
+  (0.1ms) RELEASE SAVEPOINT active_record_1
987
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
988
+ UserDataKey Load (0.4ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
989
+  (0.2ms) SAVEPOINT active_record_1
990
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
991
+ SQL (0.2ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:14.162728"], ["updated_at", "2017-03-07 10:33:14.162728"]]
992
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
993
+  (0.1ms) RELEASE SAVEPOINT active_record_1
994
+ UserData Load (0.2ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 28], ["data_key_id", 31]]
995
+  (0.1ms) SAVEPOINT active_record_1
996
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
997
+ SQL (0.3ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 31], ["resource_id", 28], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:14.167612"], ["updated_at", "2017-03-07 10:33:14.167612"]]
998
+  (0.1ms) RELEASE SAVEPOINT active_record_1
999
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 28 ORDER BY "user_data"."id" ASC LIMIT 1
1000
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" WHERE "user_data_keys"."name" = $1 ORDER BY "user_data_keys"."id" ASC LIMIT 1 [["name", "facebook_email"]]
1001
+  (0.1ms) SAVEPOINT active_record_1
1002
+ UserDataKey Load (0.3ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1003
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1004
+ SQL (0.2ms) UPDATE "user_data_keys" SET "name" = $1, "updated_at" = $2 WHERE "user_data_keys"."id" = $3 [["name", "facebook_mail"], ["updated_at", "2017-03-07 10:33:14.172853"], ["id", 31]]
1005
+ UserDataKey Load (0.3ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1006
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1007
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1008
+ UserData Load (0.3ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_mail' AND "user_data"."resource_id" = 28 ORDER BY "user_data"."id" ASC LIMIT 1
1009
+  (0.1ms) ROLLBACK
1010
+  (0.1ms) BEGIN
1011
+  (0.1ms) SAVEPOINT active_record_1
1012
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "crogers@skyndu.org"], ["created_at", "2017-03-07 10:33:14.180776"], ["updated_at", "2017-03-07 10:33:14.180776"]]
1013
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1014
+  (0.1ms) SAVEPOINT active_record_1
1015
+ SQL (0.1ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 29], ["created_at", "2017-03-07 10:33:14.182518"], ["updated_at", "2017-03-07 10:33:14.182518"]]
1016
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1017
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1018
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1019
+  (0.1ms) SAVEPOINT active_record_1
1020
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1021
+ SQL (0.2ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:14.186234"], ["updated_at", "2017-03-07 10:33:14.186234"]]
1022
+ UserDataKey Load (0.4ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1023
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1024
+ UserData Load (0.2ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 29], ["data_key_id", 32]]
1025
+  (0.1ms) SAVEPOINT active_record_1
1026
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1027
+ SQL (0.3ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 32], ["resource_id", 29], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:14.191652"], ["updated_at", "2017-03-07 10:33:14.191652"]]
1028
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1029
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 29 ORDER BY "user_data"."id" ASC LIMIT 1
1030
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1031
+ UserData Load (0.3ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 29], ["data_key_id", 32]]
1032
+ UserDataKey Load (0.3ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1033
+ UserDataKey Load (0.3ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1034
+  (0.1ms) SAVEPOINT active_record_1
1035
+ UserDataKey Load (0.3ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1036
+ SQL (0.2ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "some_attribute"], ["created_at", "2017-03-07 10:33:14.202313"], ["updated_at", "2017-03-07 10:33:14.202313"]]
1037
+ UserDataKey Load (0.3ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1038
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1039
+ UserData Load (0.2ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 29], ["data_key_id", 33]]
1040
+ UserDataKey Load (0.3ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1041
+  (0.1ms) SAVEPOINT active_record_1
1042
+ SQL (0.3ms) UPDATE "user_data" SET "value" = $1, "updated_at" = $2 WHERE "user_data"."id" = $3 [["value", "test@example.com"], ["updated_at", "2017-03-07 10:33:14.209639"], ["id", 36]]
1043
+ SQL (0.2ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 33], ["resource_id", 29], ["value", "test"], ["created_at", "2017-03-07 10:33:14.211219"], ["updated_at", "2017-03-07 10:33:14.211219"]]
1044
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1045
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 29 ORDER BY "user_data"."id" ASC LIMIT 1
1046
+ UserData Load (0.3ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'some_attribute' AND "user_data"."resource_id" = 29 ORDER BY "user_data"."id" ASC LIMIT 1
1047
+  (0.1ms) ROLLBACK
1048
+  (0.1ms) BEGIN
1049
+  (0.1ms) SAVEPOINT active_record_1
1050
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "ksullivan@kare.net"], ["created_at", "2017-03-07 10:33:14.216597"], ["updated_at", "2017-03-07 10:33:14.216597"]]
1051
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1052
+  (0.1ms) SAVEPOINT active_record_1
1053
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 30], ["created_at", "2017-03-07 10:33:14.218514"], ["updated_at", "2017-03-07 10:33:14.218514"]]
1054
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1055
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1056
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1057
+  (0.1ms) SAVEPOINT active_record_1
1058
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1059
+ SQL (0.2ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:14.222210"], ["updated_at", "2017-03-07 10:33:14.222210"]]
1060
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1061
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1062
+ UserData Load (0.1ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 30], ["data_key_id", 34]]
1063
+  (0.1ms) SAVEPOINT active_record_1
1064
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1065
+ SQL (0.2ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 34], ["resource_id", 30], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:14.226826"], ["updated_at", "2017-03-07 10:33:14.226826"]]
1066
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1067
+ UserData Load (0.7ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 30 ORDER BY "user_data"."id" ASC LIMIT 1
1068
+ OrderDataKey Load (0.5ms) SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
1069
+  (0.1ms) SAVEPOINT active_record_1
1070
+ OrderDataKey Load (0.2ms) SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
1071
+ SQL (0.2ms) INSERT INTO "order_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "affiliate_data"], ["created_at", "2017-03-07 10:33:14.239264"], ["updated_at", "2017-03-07 10:33:14.239264"]]
1072
+ OrderDataKey Load (0.2ms) SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
1073
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1074
+ OrderData Load (2.7ms) SELECT "order_data".* FROM "order_data" WHERE "order_data"."resource_id" = $1 AND "order_data"."data_key_id" = $2 ORDER BY "order_data"."id" ASC LIMIT 1 [["resource_id", 30], ["data_key_id", 4]]
1075
+  (0.1ms) SAVEPOINT active_record_1
1076
+ OrderDataKey Load (0.2ms) SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
1077
+ SQL (0.8ms) INSERT INTO "order_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 4], ["resource_id", 30], ["value", "test"], ["created_at", "2017-03-07 10:33:14.259329"], ["updated_at", "2017-03-07 10:33:14.259329"]]
1078
+  (0.6ms) RELEASE SAVEPOINT active_record_1
1079
+ OrderData Load (0.2ms) SELECT "order_data".* FROM "order_data" WHERE "order_data"."resource_id" = $1 [["resource_id", 30]]
1080
+ OrderDataKey Load (0.3ms) SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
1081
+ OrderDataKey Load (0.3ms) SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
1082
+  (0.2ms) ROLLBACK
1083
+  (0.1ms) BEGIN
1084
+  (0.1ms) SAVEPOINT active_record_1
1085
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "pbowman@yamia.biz"], ["created_at", "2017-03-07 10:33:14.270929"], ["updated_at", "2017-03-07 10:33:14.270929"]]
1086
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1087
+  (0.1ms) SAVEPOINT active_record_1
1088
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 31], ["created_at", "2017-03-07 10:33:14.273440"], ["updated_at", "2017-03-07 10:33:14.273440"]]
1089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1090
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1091
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1092
+  (0.1ms) SAVEPOINT active_record_1
1093
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1094
+ SQL (0.2ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:14.277779"], ["updated_at", "2017-03-07 10:33:14.277779"]]
1095
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1096
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1097
+ UserData Load (0.1ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 31], ["data_key_id", 35]]
1098
+  (0.1ms) SAVEPOINT active_record_1
1099
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1100
+ SQL (0.2ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 35], ["resource_id", 31], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:14.283339"], ["updated_at", "2017-03-07 10:33:14.283339"]]
1101
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1102
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 31 ORDER BY "user_data"."id" ASC LIMIT 1
1103
+  (0.4ms) SELECT COUNT(*) FROM "user_data_keys" WHERE "user_data_keys"."name" = $1 [["name", "facebook_email"]]
1104
+ UserDataKey Load (0.1ms) SELECT "user_data_keys".* FROM "user_data_keys" WHERE "user_data_keys"."name" = $1 [["name", "facebook_email"]]
1105
+  (0.1ms) SAVEPOINT active_record_1
1106
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."data_key_id" = $1 [["data_key_id", 35]]
1107
+ SQL (0.2ms) DELETE FROM "user_data" WHERE "user_data"."id" = $1 [["id", 39]]
1108
+ SQL (0.3ms) DELETE FROM "user_data_keys" WHERE "user_data_keys"."id" = $1 [["id", 35]]
1109
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1110
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1111
+  (0.1ms) SELECT COUNT(*) FROM "user_data_keys" WHERE "user_data_keys"."name" = $1 [["name", "facebook_email"]]
1112
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1113
+  (0.1ms) ROLLBACK
1114
+  (0.1ms) BEGIN
1115
+  (0.1ms) SAVEPOINT active_record_1
1116
+ SQL (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "ghernandez@zoombeat.gov"], ["created_at", "2017-03-07 10:33:14.296366"], ["updated_at", "2017-03-07 10:33:14.296366"]]
1117
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1118
+  (0.1ms) SAVEPOINT active_record_1
1119
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 32], ["created_at", "2017-03-07 10:33:14.299140"], ["updated_at", "2017-03-07 10:33:14.299140"]]
1120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1121
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1122
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1123
+  (0.1ms) SAVEPOINT active_record_1
1124
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1125
+ SQL (0.2ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:14.303404"], ["updated_at", "2017-03-07 10:33:14.303404"]]
1126
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1127
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1128
+ UserData Load (0.1ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 32], ["data_key_id", 36]]
1129
+  (0.1ms) SAVEPOINT active_record_1
1130
+ UserDataKey Load (1.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1131
+ SQL (0.3ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 36], ["resource_id", 32], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:14.310086"], ["updated_at", "2017-03-07 10:33:14.310086"]]
1132
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1133
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 32 ORDER BY "user_data"."id" ASC LIMIT 1
1134
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1135
+  (0.6ms) SELECT COUNT(*) FROM "users" LEFT JOIN user_data AS customized_attribute_facebook_email ON resource_id = users.id AND customized_attribute_facebook_email.data_key_id = '36' WHERE (customized_attribute_facebook_email.value = 'kaspernj@facebook.com')
1136
+ User Load (0.4ms) SELECT "users".* FROM "users" LEFT JOIN user_data AS customized_attribute_facebook_email ON resource_id = users.id AND customized_attribute_facebook_email.data_key_id = '36' WHERE (customized_attribute_facebook_email.value = 'kaspernj@facebook.com') ORDER BY "users"."id" ASC LIMIT 1
1137
+  (0.1ms) ROLLBACK
1138
+  (0.1ms) BEGIN
1139
+  (0.2ms) SAVEPOINT active_record_1
1140
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "clynch@realbuzz.edu"], ["created_at", "2017-03-07 10:33:39.283483"], ["updated_at", "2017-03-07 10:33:39.283483"]]
1141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1142
+  (0.1ms) SAVEPOINT active_record_1
1143
+ SQL (0.3ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 33], ["created_at", "2017-03-07 10:33:39.302717"], ["updated_at", "2017-03-07 10:33:39.302717"]]
1144
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1145
+ UserDataKey Load (0.6ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1146
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1147
+  (0.1ms) SAVEPOINT active_record_1
1148
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1149
+ SQL (0.2ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:39.314424"], ["updated_at", "2017-03-07 10:33:39.314424"]]
1150
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1152
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 33], ["data_key_id", 37]]
1153
+  (0.1ms) SAVEPOINT active_record_1
1154
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1155
+ SQL (0.6ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 37], ["resource_id", 33], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:39.335656"], ["updated_at", "2017-03-07 10:33:39.335656"]]
1156
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1157
+ UserData Load (0.7ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 33 ORDER BY "user_data"."id" ASC LIMIT 1
1158
+  (0.1ms) SAVEPOINT active_record_1
1159
+ UserData Load (0.2ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 [["resource_id", 33]]
1160
+ SQL (0.2ms) DELETE FROM "user_data" WHERE "user_data"."id" = $1 [["id", 41]]
1161
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 33]]
1162
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1163
+ UserData Load (0.3ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data"."resource_id" = $1 AND "user_data_keys"."name" = 'facebook_email' ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 33]]
1164
+  (0.1ms) ROLLBACK
1165
+  (0.1ms) BEGIN
1166
+  (0.1ms) SAVEPOINT active_record_1
1167
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "hfuller@realcube.gov"], ["created_at", "2017-03-07 10:33:39.361550"], ["updated_at", "2017-03-07 10:33:39.361550"]]
1168
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1169
+  (0.1ms) SAVEPOINT active_record_1
1170
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 34], ["created_at", "2017-03-07 10:33:39.364677"], ["updated_at", "2017-03-07 10:33:39.364677"]]
1171
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1172
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1173
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1174
+  (0.1ms) SAVEPOINT active_record_1
1175
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1176
+ SQL (0.2ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:39.368139"], ["updated_at", "2017-03-07 10:33:39.368139"]]
1177
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1178
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1179
+ UserData Load (0.2ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 34], ["data_key_id", 38]]
1180
+  (0.1ms) SAVEPOINT active_record_1
1181
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1182
+ SQL (0.3ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 38], ["resource_id", 34], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:39.372284"], ["updated_at", "2017-03-07 10:33:39.372284"]]
1183
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1184
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 34 ORDER BY "user_data"."id" ASC LIMIT 1
1185
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1186
+  (0.2ms) SAVEPOINT active_record_1
1187
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 34]]
1188
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1189
+ SQL (0.5ms) INSERT INTO "user_data" ("resource_id", "data_key_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["resource_id", 34], ["data_key_id", 38], ["value", "test"], ["created_at", "2017-03-07 10:33:39.379998"], ["updated_at", "2017-03-07 10:33:39.379998"]]
1190
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_user_data_on_data_key_id_and_resource_id"
1191
+ DETAIL: Key (data_key_id, resource_id)=(38, 34) already exists.
1192
+ : INSERT INTO "user_data" ("resource_id", "data_key_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"
1193
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1194
+  (0.1ms) ROLLBACK
1195
+  (0.1ms) BEGIN
1196
+  (0.1ms) SAVEPOINT active_record_1
1197
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "jcarter@zazio.com"], ["created_at", "2017-03-07 10:33:39.383167"], ["updated_at", "2017-03-07 10:33:39.383167"]]
1198
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1199
+  (0.1ms) SAVEPOINT active_record_1
1200
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 35], ["created_at", "2017-03-07 10:33:39.385091"], ["updated_at", "2017-03-07 10:33:39.385091"]]
1201
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1202
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1203
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1204
+  (0.1ms) SAVEPOINT active_record_1
1205
+ UserDataKey Load (0.4ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1206
+ SQL (0.2ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:39.388776"], ["updated_at", "2017-03-07 10:33:39.388776"]]
1207
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1208
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1209
+ UserData Load (0.2ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 35], ["data_key_id", 39]]
1210
+  (0.1ms) SAVEPOINT active_record_1
1211
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1212
+ SQL (0.3ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 39], ["resource_id", 35], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:39.393643"], ["updated_at", "2017-03-07 10:33:39.393643"]]
1213
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1214
+ UserData Load (0.5ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 35 ORDER BY "user_data"."id" ASC LIMIT 1
1215
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1216
+  (0.5ms) SELECT COUNT(*) FROM "users" LEFT JOIN user_data AS customized_attribute_facebook_email ON resource_id = users.id AND customized_attribute_facebook_email.data_key_id = '39' WHERE (customized_attribute_facebook_email.value = 'kaspernj@facebook.com')
1217
+ User Load (0.4ms) SELECT "users".* FROM "users" LEFT JOIN user_data AS customized_attribute_facebook_email ON resource_id = users.id AND customized_attribute_facebook_email.data_key_id = '39' WHERE (customized_attribute_facebook_email.value = 'kaspernj@facebook.com') ORDER BY "users"."id" ASC LIMIT 1
1218
+  (0.1ms) ROLLBACK
1219
+  (0.1ms) BEGIN
1220
+  (0.1ms) SAVEPOINT active_record_1
1221
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "ebryant@gevee.org"], ["created_at", "2017-03-07 10:33:39.401315"], ["updated_at", "2017-03-07 10:33:39.401315"]]
1222
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1223
+  (0.1ms) SAVEPOINT active_record_1
1224
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 36], ["created_at", "2017-03-07 10:33:39.403393"], ["updated_at", "2017-03-07 10:33:39.403393"]]
1225
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1226
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1227
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1228
+  (0.1ms) SAVEPOINT active_record_1
1229
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1230
+ SQL (0.2ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:39.406598"], ["updated_at", "2017-03-07 10:33:39.406598"]]
1231
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1232
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1233
+ UserData Load (0.2ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 36], ["data_key_id", 40]]
1234
+  (0.1ms) SAVEPOINT active_record_1
1235
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1236
+ SQL (0.3ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 40], ["resource_id", 36], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:39.410786"], ["updated_at", "2017-03-07 10:33:39.410786"]]
1237
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1238
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 36 ORDER BY "user_data"."id" ASC LIMIT 1
1239
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1240
+ UserData Load (0.2ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 36], ["data_key_id", 40]]
1241
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1242
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1243
+  (0.1ms) SAVEPOINT active_record_1
1244
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1245
+ SQL (0.2ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "some_attribute"], ["created_at", "2017-03-07 10:33:39.419410"], ["updated_at", "2017-03-07 10:33:39.419410"]]
1246
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1248
+ UserData Load (0.2ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 36], ["data_key_id", 41]]
1249
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1250
+  (0.1ms) SAVEPOINT active_record_1
1251
+ SQL (0.3ms) UPDATE "user_data" SET "value" = $1, "updated_at" = $2 WHERE "user_data"."id" = $3 [["value", "test@example.com"], ["updated_at", "2017-03-07 10:33:39.423539"], ["id", 45]]
1252
+ SQL (0.3ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 41], ["resource_id", 36], ["value", "test"], ["created_at", "2017-03-07 10:33:39.425399"], ["updated_at", "2017-03-07 10:33:39.425399"]]
1253
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1254
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 36 ORDER BY "user_data"."id" ASC LIMIT 1
1255
+ UserData Load (0.3ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'some_attribute' AND "user_data"."resource_id" = 36 ORDER BY "user_data"."id" ASC LIMIT 1
1256
+  (0.1ms) ROLLBACK
1257
+  (0.1ms) BEGIN
1258
+  (0.1ms) SAVEPOINT active_record_1
1259
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "jnguyen@ainyx.net"], ["created_at", "2017-03-07 10:33:39.430501"], ["updated_at", "2017-03-07 10:33:39.430501"]]
1260
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1261
+  (0.1ms) SAVEPOINT active_record_1
1262
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 37], ["created_at", "2017-03-07 10:33:39.432571"], ["updated_at", "2017-03-07 10:33:39.432571"]]
1263
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1264
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1265
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1266
+  (0.1ms) SAVEPOINT active_record_1
1267
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1268
+ SQL (0.2ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:39.435782"], ["updated_at", "2017-03-07 10:33:39.435782"]]
1269
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1270
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1271
+ UserData Load (0.1ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 37], ["data_key_id", 42]]
1272
+  (0.1ms) SAVEPOINT active_record_1
1273
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1274
+ SQL (0.2ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 42], ["resource_id", 37], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:39.440259"], ["updated_at", "2017-03-07 10:33:39.440259"]]
1275
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1276
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 37 ORDER BY "user_data"."id" ASC LIMIT 1
1277
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" WHERE "user_data_keys"."name" = $1 ORDER BY "user_data_keys"."id" ASC LIMIT 1 [["name", "facebook_email"]]
1278
+  (0.1ms) SAVEPOINT active_record_1
1279
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1280
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1281
+ SQL (0.2ms) UPDATE "user_data_keys" SET "name" = $1, "updated_at" = $2 WHERE "user_data_keys"."id" = $3 [["name", "facebook_mail"], ["updated_at", "2017-03-07 10:33:39.444734"], ["id", 42]]
1282
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1283
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1284
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1285
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_mail' AND "user_data"."resource_id" = 37 ORDER BY "user_data"."id" ASC LIMIT 1
1286
+  (0.1ms) ROLLBACK
1287
+  (0.1ms) BEGIN
1288
+  (0.1ms) SAVEPOINT active_record_1
1289
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "polson@innojam.com"], ["created_at", "2017-03-07 10:33:39.450891"], ["updated_at", "2017-03-07 10:33:39.450891"]]
1290
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1291
+  (0.1ms) SAVEPOINT active_record_1
1292
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 38], ["created_at", "2017-03-07 10:33:39.452833"], ["updated_at", "2017-03-07 10:33:39.452833"]]
1293
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1294
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1295
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1296
+  (0.1ms) SAVEPOINT active_record_1
1297
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1298
+ SQL (0.1ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:39.456259"], ["updated_at", "2017-03-07 10:33:39.456259"]]
1299
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1300
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1301
+ UserData Load (0.1ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 38], ["data_key_id", 43]]
1302
+  (0.1ms) SAVEPOINT active_record_1
1303
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1304
+ SQL (0.2ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 43], ["resource_id", 38], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:39.460771"], ["updated_at", "2017-03-07 10:33:39.460771"]]
1305
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1306
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 38 ORDER BY "user_data"."id" ASC LIMIT 1
1307
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 38 ORDER BY "user_data"."id" ASC LIMIT 1
1308
+  (0.1ms) SAVEPOINT active_record_1
1309
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1310
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1311
+  (0.1ms) ROLLBACK
1312
+  (0.1ms) BEGIN
1313
+  (0.1ms) SAVEPOINT active_record_1
1314
+ SQL (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "swest@gabtype.name"], ["created_at", "2017-03-07 10:33:39.472874"], ["updated_at", "2017-03-07 10:33:39.472874"]]
1315
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1316
+  (0.1ms) SAVEPOINT active_record_1
1317
+ SQL (0.1ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 39], ["created_at", "2017-03-07 10:33:39.475237"], ["updated_at", "2017-03-07 10:33:39.475237"]]
1318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1319
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1320
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1321
+  (0.1ms) SAVEPOINT active_record_1
1322
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1323
+ SQL (0.1ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:39.478920"], ["updated_at", "2017-03-07 10:33:39.478920"]]
1324
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1325
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1326
+ UserData Load (0.1ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 39], ["data_key_id", 44]]
1327
+  (0.1ms) SAVEPOINT active_record_1
1328
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1329
+ SQL (0.2ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 44], ["resource_id", 39], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:39.484057"], ["updated_at", "2017-03-07 10:33:39.484057"]]
1330
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1331
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 39 ORDER BY "user_data"."id" ASC LIMIT 1
1332
+  (0.2ms) SELECT COUNT(*) FROM "user_data_keys" WHERE "user_data_keys"."name" = $1 [["name", "facebook_email"]]
1333
+ UserDataKey Load (0.1ms) SELECT "user_data_keys".* FROM "user_data_keys" WHERE "user_data_keys"."name" = $1 [["name", "facebook_email"]]
1334
+  (0.1ms) SAVEPOINT active_record_1
1335
+ UserData Load (0.2ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."data_key_id" = $1 [["data_key_id", 44]]
1336
+ SQL (0.2ms) DELETE FROM "user_data" WHERE "user_data"."id" = $1 [["id", 49]]
1337
+ SQL (0.2ms) DELETE FROM "user_data_keys" WHERE "user_data_keys"."id" = $1 [["id", 44]]
1338
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1339
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1340
+  (0.1ms) SELECT COUNT(*) FROM "user_data_keys" WHERE "user_data_keys"."name" = $1 [["name", "facebook_email"]]
1341
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1342
+  (0.1ms) ROLLBACK
1343
+  (0.1ms) BEGIN
1344
+  (0.1ms) SAVEPOINT active_record_1
1345
+ SQL (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "rfreeman@dabfeed.info"], ["created_at", "2017-03-07 10:33:39.496246"], ["updated_at", "2017-03-07 10:33:39.496246"]]
1346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1347
+  (0.1ms) SAVEPOINT active_record_1
1348
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 40], ["created_at", "2017-03-07 10:33:39.499110"], ["updated_at", "2017-03-07 10:33:39.499110"]]
1349
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1350
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1351
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1352
+  (0.1ms) SAVEPOINT active_record_1
1353
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1354
+ SQL (0.2ms) INSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:39.502939"], ["updated_at", "2017-03-07 10:33:39.502939"]]
1355
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1356
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1357
+ UserData Load (0.1ms) SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 AND "user_data"."data_key_id" = $2 ORDER BY "user_data"."id" ASC LIMIT 1 [["resource_id", 40], ["data_key_id", 45]]
1358
+  (0.1ms) SAVEPOINT active_record_1
1359
+ UserDataKey Load (0.2ms) SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
1360
+ SQL (0.2ms) INSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 45], ["resource_id", 40], ["value", "kaspernj@facebook.com"], ["created_at", "2017-03-07 10:33:39.508117"], ["updated_at", "2017-03-07 10:33:39.508117"]]
1361
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1362
+ UserData Load (0.4ms) SELECT "user_data".* FROM "user_data" INNER JOIN "user_data_keys" ON "user_data_keys"."id" = "user_data"."data_key_id" WHERE "user_data_keys"."name" = 'facebook_email' AND "user_data"."resource_id" = 40 ORDER BY "user_data"."id" ASC LIMIT 1
1363
+ OrderDataKey Load (0.4ms) SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
1364
+  (0.1ms) SAVEPOINT active_record_1
1365
+ OrderDataKey Load (0.2ms) SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
1366
+ SQL (0.3ms) INSERT INTO "order_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "affiliate_data"], ["created_at", "2017-03-07 10:33:39.519081"], ["updated_at", "2017-03-07 10:33:39.519081"]]
1367
+ OrderDataKey Load (0.2ms) SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
1368
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1369
+ OrderData Load (0.4ms) SELECT "order_data".* FROM "order_data" WHERE "order_data"."resource_id" = $1 AND "order_data"."data_key_id" = $2 ORDER BY "order_data"."id" ASC LIMIT 1 [["resource_id", 40], ["data_key_id", 5]]
1370
+  (0.1ms) SAVEPOINT active_record_1
1371
+ OrderDataKey Load (0.2ms) SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
1372
+ SQL (0.5ms) INSERT INTO "order_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["data_key_id", 5], ["resource_id", 40], ["value", "test"], ["created_at", "2017-03-07 10:33:39.533143"], ["updated_at", "2017-03-07 10:33:39.533143"]]
1373
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1374
+ OrderData Load (0.2ms) SELECT "order_data".* FROM "order_data" WHERE "order_data"."resource_id" = $1 [["resource_id", 40]]
1375
+ OrderDataKey Load (0.2ms) SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
1376
+ OrderDataKey Load (0.2ms) SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
1377
+  (0.1ms) ROLLBACK
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_customized_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Johansen