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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66909ffe29f3412051d00e1851ddb4d29b37497d
|
4
|
+
data.tar.gz: 91c0287a9a38d46ac213c0d3429a477880f004e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
@
|
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
|
-
@
|
45
|
+
@_cache_name_to_id = {}
|
41
46
|
find_each do |data_key|
|
42
|
-
@
|
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
|
-
|
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
|
-
|
49
|
+
attributes_hash[key_name.to_sym] = data_i.value
|
50
50
|
end
|
51
51
|
|
52
|
-
|
52
|
+
attributes_hash
|
53
53
|
end
|
54
54
|
end
|
data/spec/dummy/log/test.log
CHANGED
@@ -895,3 +895,483 @@ DETAIL: Key (data_key_id, resource_id)=(26, 23) already exists.
|
|
895
895
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
896
896
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
897
897
|
[1m[35m (0.1ms)[0m ROLLBACK
|
898
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
899
|
+
[1m[35m (0.9ms)[0m SAVEPOINT active_record_1
|
900
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "dgonzales@latz.net"], ["created_at", "2017-03-07 10:33:14.005664"], ["updated_at", "2017-03-07 10:33:14.005664"]]
|
901
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
902
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
903
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
905
|
+
[1m[35mUserDataKey Load (0.6ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
906
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
907
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
908
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
909
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.3ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
911
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
912
|
+
[1m[36mUserData Load (0.3ms)[0m [1mSELECT "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[0m [["resource_id", 25], ["data_key_id", 28]]
|
913
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
914
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
915
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
917
|
+
[1m[35mUserData Load (0.5ms)[0m 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
|
+
[1m[36mUserData Load (0.5ms)[0m [1mSELECT "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[0m
|
919
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
920
|
+
[1m[36mUserDataKey Load (0.3ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
921
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
922
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
923
|
+
[1m[35m (0.1ms)[0m BEGIN
|
924
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
925
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
927
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
928
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["user_id", 26], ["created_at", "2017-03-07 10:33:14.104154"], ["updated_at", "2017-03-07 10:33:14.104154"]]
|
929
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
930
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
931
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
932
|
+
[1m[36m (0.9ms)[0m [1mSAVEPOINT active_record_1[0m
|
933
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
934
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:14.111210"], ["updated_at", "2017-03-07 10:33:14.111210"]]
|
935
|
+
[1m[35mUserDataKey Load (0.9ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
936
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
937
|
+
[1m[35mUserData Load (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
939
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
940
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
942
|
+
[1m[36mUserData Load (0.4ms)[0m [1mSELECT "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[0m
|
943
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
944
|
+
[1m[36mUserData Load (0.2ms)[0m [1mSELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1[0m [["resource_id", 26]]
|
945
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "user_data" WHERE "user_data"."id" = $1 [["id", 32]]
|
946
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = $1[0m [["id", 26]]
|
947
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
948
|
+
[1m[36mUserData Load (0.4ms)[0m [1mSELECT "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[0m [["resource_id", 26]]
|
949
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
950
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
951
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
952
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "echapman@kimia.gov"], ["created_at", "2017-03-07 10:33:14.132138"], ["updated_at", "2017-03-07 10:33:14.132138"]]
|
953
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
954
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
955
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
957
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
958
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
959
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
960
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
961
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.3ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
963
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
964
|
+
[1m[36mUserData Load (0.2ms)[0m [1mSELECT "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[0m [["resource_id", 27], ["data_key_id", 30]]
|
965
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
966
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
967
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
969
|
+
[1m[35mUserData Load (0.6ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.3ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
971
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
972
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 27]]
|
973
|
+
[1m[35mUserDataKey Load (0.3ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
974
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "user_data" ("resource_id", "data_key_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
979
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
980
|
+
[1m[35m (0.4ms)[0m BEGIN
|
981
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
982
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
984
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
985
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["user_id", 28], ["created_at", "2017-03-07 10:33:14.157586"], ["updated_at", "2017-03-07 10:33:14.157586"]]
|
986
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
987
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
988
|
+
[1m[35mUserDataKey Load (0.4ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
989
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
990
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
991
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:14.162728"], ["updated_at", "2017-03-07 10:33:14.162728"]]
|
992
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
993
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
994
|
+
[1m[35mUserData Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
996
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
997
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
999
|
+
[1m[36mUserData Load (0.4ms)[0m [1mSELECT "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[0m
|
1000
|
+
[1m[35mUserDataKey Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1002
|
+
[1m[35mUserDataKey Load (0.3ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1003
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1004
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.3ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1006
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1007
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1008
|
+
[1m[35mUserData Load (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1010
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1011
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1012
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1014
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1015
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["user_id", 29], ["created_at", "2017-03-07 10:33:14.182518"], ["updated_at", "2017-03-07 10:33:14.182518"]]
|
1016
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1017
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1018
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1019
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1020
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1021
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:14.186234"], ["updated_at", "2017-03-07 10:33:14.186234"]]
|
1022
|
+
[1m[35mUserDataKey Load (0.4ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1023
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1024
|
+
[1m[35mUserData Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1026
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1027
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1029
|
+
[1m[36mUserData Load (0.4ms)[0m [1mSELECT "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[0m
|
1030
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1031
|
+
[1m[36mUserData Load (0.3ms)[0m [1mSELECT "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[0m [["resource_id", 29], ["data_key_id", 32]]
|
1032
|
+
[1m[35mUserDataKey Load (0.3ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1033
|
+
[1m[36mUserDataKey Load (0.3ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1034
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1035
|
+
[1m[36mUserDataKey Load (0.3ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1036
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.3ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1038
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1039
|
+
[1m[36mUserData Load (0.2ms)[0m [1mSELECT "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[0m [["resource_id", 29], ["data_key_id", 33]]
|
1040
|
+
[1m[35mUserDataKey Load (0.3ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1041
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1042
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1045
|
+
[1m[36mUserData Load (0.4ms)[0m [1mSELECT "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[0m
|
1046
|
+
[1m[35mUserData Load (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1048
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1049
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1050
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1052
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1053
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["user_id", 30], ["created_at", "2017-03-07 10:33:14.218514"], ["updated_at", "2017-03-07 10:33:14.218514"]]
|
1054
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1055
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1056
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1057
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1058
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1059
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:14.222210"], ["updated_at", "2017-03-07 10:33:14.222210"]]
|
1060
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1061
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1062
|
+
[1m[35mUserData Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1064
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1065
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1067
|
+
[1m[36mUserData Load (0.7ms)[0m [1mSELECT "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[0m
|
1068
|
+
[1m[35mOrderDataKey Load (0.5ms)[0m SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
|
1069
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1070
|
+
[1m[35mOrderDataKey Load (0.2ms)[0m SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
|
1071
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "affiliate_data"], ["created_at", "2017-03-07 10:33:14.239264"], ["updated_at", "2017-03-07 10:33:14.239264"]]
|
1072
|
+
[1m[35mOrderDataKey Load (0.2ms)[0m SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
|
1073
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1074
|
+
[1m[35mOrderData Load (2.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1076
|
+
[1m[35mOrderDataKey Load (0.2ms)[0m SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
|
1077
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "order_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1079
|
+
[1m[36mOrderData Load (0.2ms)[0m [1mSELECT "order_data".* FROM "order_data" WHERE "order_data"."resource_id" = $1[0m [["resource_id", 30]]
|
1080
|
+
[1m[35mOrderDataKey Load (0.3ms)[0m SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
|
1081
|
+
[1m[36mOrderDataKey Load (0.3ms)[0m [1mSELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000[0m
|
1082
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1083
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1084
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1085
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "pbowman@yamia.biz"], ["created_at", "2017-03-07 10:33:14.270929"], ["updated_at", "2017-03-07 10:33:14.270929"]]
|
1086
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1087
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1088
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1090
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1091
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1092
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1093
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1094
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1096
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1097
|
+
[1m[36mUserData Load (0.1ms)[0m [1mSELECT "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[0m [["resource_id", 31], ["data_key_id", 35]]
|
1098
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1099
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1100
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1102
|
+
[1m[35mUserData Load (0.4ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "user_data_keys" WHERE "user_data_keys"."name" = $1[0m [["name", "facebook_email"]]
|
1104
|
+
[1m[35mUserDataKey Load (0.1ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" WHERE "user_data_keys"."name" = $1 [["name", "facebook_email"]]
|
1105
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1106
|
+
[1m[35mUserData Load (0.4ms)[0m SELECT "user_data".* FROM "user_data" WHERE "user_data"."data_key_id" = $1 [["data_key_id", 35]]
|
1107
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "user_data" WHERE "user_data"."id" = $1[0m [["id", 39]]
|
1108
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "user_data_keys" WHERE "user_data_keys"."id" = $1 [["id", 35]]
|
1109
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1110
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1111
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "user_data_keys" WHERE "user_data_keys"."name" = $1[0m [["name", "facebook_email"]]
|
1112
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1113
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1114
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1115
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1116
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1118
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1119
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["user_id", 32], ["created_at", "2017-03-07 10:33:14.299140"], ["updated_at", "2017-03-07 10:33:14.299140"]]
|
1120
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1121
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1122
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1123
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1124
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1125
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:14.303404"], ["updated_at", "2017-03-07 10:33:14.303404"]]
|
1126
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1127
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1128
|
+
[1m[35mUserData Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1130
|
+
[1m[35mUserDataKey Load (1.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1131
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1133
|
+
[1m[36mUserData Load (0.4ms)[0m [1mSELECT "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[0m
|
1134
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1135
|
+
[1m[36m (0.6ms)[0m [1mSELECT 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')[0m
|
1136
|
+
[1m[35mUser Load (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1138
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1139
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1140
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "clynch@realbuzz.edu"], ["created_at", "2017-03-07 10:33:39.283483"], ["updated_at", "2017-03-07 10:33:39.283483"]]
|
1141
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1142
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1143
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1145
|
+
[1m[35mUserDataKey Load (0.6ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1146
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1147
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1148
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1149
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1151
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1152
|
+
[1m[36mUserData Load (0.4ms)[0m [1mSELECT "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[0m [["resource_id", 33], ["data_key_id", 37]]
|
1153
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1154
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1155
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1157
|
+
[1m[35mUserData Load (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1159
|
+
[1m[35mUserData Load (0.2ms)[0m SELECT "user_data".* FROM "user_data" WHERE "user_data"."resource_id" = $1 [["resource_id", 33]]
|
1160
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "user_data" WHERE "user_data"."id" = $1[0m [["id", 41]]
|
1161
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = $1 [["id", 33]]
|
1162
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1163
|
+
[1m[35mUserData Load (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1165
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1166
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1167
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1169
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1170
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["user_id", 34], ["created_at", "2017-03-07 10:33:39.364677"], ["updated_at", "2017-03-07 10:33:39.364677"]]
|
1171
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1172
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1173
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1174
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1175
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1176
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:39.368139"], ["updated_at", "2017-03-07 10:33:39.368139"]]
|
1177
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1178
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1179
|
+
[1m[35mUserData Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1181
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1182
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1184
|
+
[1m[36mUserData Load (0.4ms)[0m [1mSELECT "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[0m
|
1185
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1186
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1187
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 34]]
|
1188
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1189
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1194
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1195
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1196
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1197
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "jcarter@zazio.com"], ["created_at", "2017-03-07 10:33:39.383167"], ["updated_at", "2017-03-07 10:33:39.383167"]]
|
1198
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1199
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1200
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1202
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1203
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1204
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1205
|
+
[1m[36mUserDataKey Load (0.4ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1206
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1208
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1209
|
+
[1m[36mUserData Load (0.2ms)[0m [1mSELECT "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[0m [["resource_id", 35], ["data_key_id", 39]]
|
1210
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1211
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1212
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1214
|
+
[1m[35mUserData Load (0.5ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1216
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "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[0m
|
1218
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1219
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1220
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1221
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "ebryant@gevee.org"], ["created_at", "2017-03-07 10:33:39.401315"], ["updated_at", "2017-03-07 10:33:39.401315"]]
|
1222
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1223
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1224
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1226
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1227
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1228
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1229
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1230
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1232
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1233
|
+
[1m[36mUserData Load (0.2ms)[0m [1mSELECT "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[0m [["resource_id", 36], ["data_key_id", 40]]
|
1234
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1235
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1236
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1238
|
+
[1m[35mUserData Load (0.4ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1240
|
+
[1m[35mUserData Load (0.2ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1242
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1243
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1244
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1245
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "some_attribute"], ["created_at", "2017-03-07 10:33:39.419410"], ["updated_at", "2017-03-07 10:33:39.419410"]]
|
1246
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1247
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1248
|
+
[1m[35mUserData Load (0.2ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1250
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1251
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "user_data" SET "value" = $1, "updated_at" = $2 WHERE "user_data"."id" = $3[0m [["value", "test@example.com"], ["updated_at", "2017-03-07 10:33:39.423539"], ["id", 45]]
|
1252
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1254
|
+
[1m[35mUserData Load (0.4ms)[0m 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
|
+
[1m[36mUserData Load (0.3ms)[0m [1mSELECT "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[0m
|
1256
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1257
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1258
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1259
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "jnguyen@ainyx.net"], ["created_at", "2017-03-07 10:33:39.430501"], ["updated_at", "2017-03-07 10:33:39.430501"]]
|
1260
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1261
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1262
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1264
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1265
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1266
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1267
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1268
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1270
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1271
|
+
[1m[36mUserData Load (0.1ms)[0m [1mSELECT "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[0m [["resource_id", 37], ["data_key_id", 42]]
|
1272
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1273
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1274
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1276
|
+
[1m[35mUserData Load (0.4ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" WHERE "user_data_keys"."name" = $1 ORDER BY "user_data_keys"."id" ASC LIMIT 1[0m [["name", "facebook_email"]]
|
1278
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1279
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1280
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1281
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "user_data_keys" SET "name" = $1, "updated_at" = $2 WHERE "user_data_keys"."id" = $3[0m [["name", "facebook_mail"], ["updated_at", "2017-03-07 10:33:39.444734"], ["id", 42]]
|
1282
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1283
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1284
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1285
|
+
[1m[36mUserData Load (0.4ms)[0m [1mSELECT "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[0m
|
1286
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1287
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1288
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1289
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "polson@innojam.com"], ["created_at", "2017-03-07 10:33:39.450891"], ["updated_at", "2017-03-07 10:33:39.450891"]]
|
1290
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1291
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1292
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1294
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1295
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1296
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1297
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1298
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1300
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1301
|
+
[1m[36mUserData Load (0.1ms)[0m [1mSELECT "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[0m [["resource_id", 38], ["data_key_id", 43]]
|
1302
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1303
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1304
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1306
|
+
[1m[35mUserData Load (0.4ms)[0m 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
|
+
[1m[36mUserData Load (0.4ms)[0m [1mSELECT "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[0m
|
1308
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1309
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1310
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1311
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1312
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1313
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1314
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1316
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1317
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "orders" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["user_id", 39], ["created_at", "2017-03-07 10:33:39.475237"], ["updated_at", "2017-03-07 10:33:39.475237"]]
|
1318
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1319
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1320
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1321
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1322
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1323
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_data_keys" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "facebook_email"], ["created_at", "2017-03-07 10:33:39.478920"], ["updated_at", "2017-03-07 10:33:39.478920"]]
|
1324
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1325
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1326
|
+
[1m[35mUserData Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1328
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1329
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "user_data" ("data_key_id", "resource_id", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1331
|
+
[1m[36mUserData Load (0.4ms)[0m [1mSELECT "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[0m
|
1332
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "user_data_keys" WHERE "user_data_keys"."name" = $1 [["name", "facebook_email"]]
|
1333
|
+
[1m[36mUserDataKey Load (0.1ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" WHERE "user_data_keys"."name" = $1[0m [["name", "facebook_email"]]
|
1334
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1335
|
+
[1m[36mUserData Load (0.2ms)[0m [1mSELECT "user_data".* FROM "user_data" WHERE "user_data"."data_key_id" = $1[0m [["data_key_id", 44]]
|
1336
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "user_data" WHERE "user_data"."id" = $1 [["id", 49]]
|
1337
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "user_data_keys" WHERE "user_data_keys"."id" = $1[0m [["id", 44]]
|
1338
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1339
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1340
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "user_data_keys" WHERE "user_data_keys"."name" = $1 [["name", "facebook_email"]]
|
1341
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1342
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1343
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1344
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1345
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "rfreeman@dabfeed.info"], ["created_at", "2017-03-07 10:33:39.496246"], ["updated_at", "2017-03-07 10:33:39.496246"]]
|
1346
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1347
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1348
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1350
|
+
[1m[35mUserDataKey Load (0.2ms)[0m SELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000
|
1351
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1352
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1353
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1354
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1356
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1357
|
+
[1m[36mUserData Load (0.1ms)[0m [1mSELECT "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[0m [["resource_id", 40], ["data_key_id", 45]]
|
1358
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1359
|
+
[1m[36mUserDataKey Load (0.2ms)[0m [1mSELECT "user_data_keys".* FROM "user_data_keys" ORDER BY "user_data_keys"."id" ASC LIMIT 1000[0m
|
1360
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1362
|
+
[1m[35mUserData Load (0.4ms)[0m 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
|
+
[1m[36mOrderDataKey Load (0.4ms)[0m [1mSELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000[0m
|
1364
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1365
|
+
[1m[36mOrderDataKey Load (0.2ms)[0m [1mSELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000[0m
|
1366
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mOrderDataKey Load (0.2ms)[0m [1mSELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000[0m
|
1368
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1369
|
+
[1m[36mOrderData Load (0.4ms)[0m [1mSELECT "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[0m [["resource_id", 40], ["data_key_id", 5]]
|
1370
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1371
|
+
[1m[36mOrderDataKey Load (0.2ms)[0m [1mSELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000[0m
|
1372
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1374
|
+
[1m[35mOrderData Load (0.2ms)[0m SELECT "order_data".* FROM "order_data" WHERE "order_data"."resource_id" = $1 [["resource_id", 40]]
|
1375
|
+
[1m[36mOrderDataKey Load (0.2ms)[0m [1mSELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000[0m
|
1376
|
+
[1m[35mOrderDataKey Load (0.2ms)[0m SELECT "order_data_keys".* FROM "order_data_keys" ORDER BY "order_data_keys"."id" ASC LIMIT 1000
|
1377
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|