syncable_models 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/syncable_models/importer.rb +7 -5
- data/lib/syncable_models/version.rb +1 -1
- data/spec/dummy/log/test.log +491 -491
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Yjg1MzNhOGNkOWMzMzc0NDQ5N2JkMDQ3ZTM4ZDJlNmZlMWRlYTM2NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmNjMGI3N2JhODVkYWE1ZTA4ZWRiMTA2MDc0NjZiODNiNjM5ZGVjNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjE3M2QxMTAzYzhkYzE5N2FhNmIyMTc1MzRmZjI1MTMxNDFiNzEwZjAwMWI0
|
10
|
+
MDE4YzVlNjVmOWI2OWFkMDRlYjdjYjhiZDEzNjk3ZmVmYmFjODAzZDM4MGVj
|
11
|
+
NmJjZTQyN2Y2M2I0NjUzMmViYzNhNTRhNmRiM2RlODE0ZjU4ZDA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjY0OWMyMGUxMjY4YmNkNTQ5ZTY3NTU1MzdlM2M5NWJhYjQ2ODdhM2IxNTIy
|
14
|
+
MWE3YTQ2NzIwMTcyYjBlYjE5NDA1NzE1YWFmYWFjMThkZDllYzZkZGQwMDUx
|
15
|
+
OTdjOGI2MzZlZDMyODc5NDY2ZWY1ZDQyZmUzYTU1N2Q3NDM1Mjk=
|
@@ -18,11 +18,13 @@ module SyncableModels
|
|
18
18
|
class_name = class_name.to_s if class_name.is_a?(Class)
|
19
19
|
fetch_path = args[:fetch_path] || class_name.underscore.pluralize
|
20
20
|
sync_path = args[:sync_path] || "sync_" + class_name.underscore.pluralize
|
21
|
-
|
21
|
+
api_id_key = args[:api_id_key] || :uuid
|
22
|
+
external_id_column = args[:external_id_column] || :external_id
|
22
23
|
@models[class_name] = {
|
23
24
|
fetch_path: fetch_path,
|
24
25
|
sync_path: sync_path,
|
25
|
-
|
26
|
+
api_id_key: api_id_key,
|
27
|
+
external_id_column: external_id_column
|
26
28
|
}
|
27
29
|
end
|
28
30
|
|
@@ -58,7 +60,7 @@ module SyncableModels
|
|
58
60
|
synced_ids = []
|
59
61
|
|
60
62
|
synced_ids += sync_update model_name, params, response['for_sync']
|
61
|
-
synced_ids += sync_destroy model_name, response['for_destroy']
|
63
|
+
synced_ids += sync_destroy model_name, params, response['for_destroy']
|
62
64
|
|
63
65
|
sync_request(params, synced_ids) if synced_ids.any?
|
64
66
|
end
|
@@ -92,14 +94,14 @@ module SyncableModels
|
|
92
94
|
synced_ids
|
93
95
|
end
|
94
96
|
|
95
|
-
def sync_destroy(model_name, ids)
|
97
|
+
def sync_destroy(model_name, params, ids)
|
96
98
|
synced_ids = []
|
97
99
|
|
98
100
|
if ids
|
99
101
|
klass = model_name.constantize
|
100
102
|
|
101
103
|
ids.each do |id|
|
102
|
-
result = klass.where(
|
104
|
+
result = klass.where(params[:external_id_column].to_s => id).first.try(:destroy)
|
103
105
|
puts "[SyncableModels::Importer] Destroying #{model_name} (external_id=#{id}): #{ result ? 'OK' : 'FAIL' }"
|
104
106
|
synced_ids << id if result
|
105
107
|
end
|
data/spec/dummy/log/test.log
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
[1m[36m (
|
1
|
+
[1m[36m (3.5ms)[0m [1mCREATE TABLE "projects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uuid" varchar NOT NULL, "deleted_at" datetime, "external_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2
2
|
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
-
[1m[36m (1.
|
4
|
-
[1m[35m (
|
5
|
-
[1m[36m (1.
|
6
|
-
[1m[35m (0.
|
3
|
+
[1m[36m (1.7ms)[0m [1mCREATE UNIQUE INDEX "index_projects_on_uuid" ON "projects" ("uuid")[0m
|
4
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "syncs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject_id" integer, "subject_type" varchar, "destination" varchar NOT NULL, "subject_external_id" varchar NOT NULL, "subject_destroyed" boolean DEFAULT 'f' NOT NULL, "created_at" datetime, "updated_at" datetime)
|
5
|
+
[1m[36m (1.7ms)[0m [1mCREATE INDEX "index_syncs_on_destination" ON "syncs" ("destination")[0m
|
6
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7
7
|
FROM sqlite_master
|
8
8
|
WHERE name='index_syncs_on_destination' AND type='index'
|
9
9
|
UNION ALL
|
@@ -11,7 +11,7 @@
|
|
11
11
|
FROM sqlite_temp_master
|
12
12
|
WHERE name='index_syncs_on_destination' AND type='index'
|
13
13
|
|
14
|
-
[1m[36m (
|
14
|
+
[1m[36m (1.6ms)[0m [1mCREATE INDEX "index_syncs_on_subject_external_id_and_subject_destroyed" ON "syncs" ("subject_external_id", "subject_destroyed")[0m
|
15
15
|
[1m[35m (0.1ms)[0m SELECT sql
|
16
16
|
FROM sqlite_master
|
17
17
|
WHERE name='index_syncs_on_subject_external_id_and_subject_destroyed' AND type='index'
|
@@ -28,156 +28,156 @@
|
|
28
28
|
FROM sqlite_temp_master
|
29
29
|
WHERE name='index_syncs_on_destination' AND type='index'
|
30
30
|
[0m
|
31
|
-
[1m[35m (
|
32
|
-
[1m[36m (1.
|
33
|
-
[1m[35m (
|
34
|
-
[1m[36m (
|
31
|
+
[1m[35m (1.5ms)[0m CREATE INDEX "index_syncs_on_subject_id_and_subject_type_and_destination" ON "syncs" ("subject_id", "subject_type", "destination")
|
32
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "teams" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "external_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
33
|
+
[1m[35m (1.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
34
|
+
[1m[36m (1.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
35
35
|
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
36
|
-
[1m[36m (
|
36
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160327154807')[0m
|
37
37
|
[1m[35m (1.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160327104327')
|
38
|
-
[1m[36m (1.
|
38
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160327111225')[0m
|
39
39
|
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
40
40
|
[1m[35m (0.2ms)[0m begin transaction
|
41
41
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
42
|
-
[1m[35mSQL (0.
|
42
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:20.867428"], ["updated_at", "2016-03-29 13:58:20.867428"]]
|
43
43
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
44
|
-
[1m[35m (0.
|
45
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Second"], ["created_at", "2016-03-29
|
44
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
45
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Second"], ["created_at", "2016-03-29 13:58:20.872119"], ["updated_at", "2016-03-29 13:58:20.872119"]]
|
46
46
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
47
|
-
[1m[36m (0.
|
48
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29
|
49
|
-
[1m[36m (0.
|
50
|
-
[1m[35m (0.
|
51
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "fourth"], ["created_at", "2016-03-29
|
47
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
48
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 13:58:20.873867"], ["updated_at", "2016-03-29 13:58:20.873867"]]
|
49
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
50
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
51
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "fourth"], ["created_at", "2016-03-29 13:58:20.875376"], ["updated_at", "2016-03-29 13:58:20.875376"]]
|
52
52
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
53
53
|
Processing by ImportApiController#teams as HTML
|
54
54
|
Parameters: {"destination"=>"test"}
|
55
|
-
[1m[36m (0.
|
56
|
-
[1m[35mTeam Load (0.
|
57
|
-
[1m[36mSyncableModels::Sync Load (0.
|
58
|
-
Completed 200 OK in
|
59
|
-
[1m[35m (0.
|
60
|
-
[1m[36m (0.
|
61
|
-
[1m[35m (0.
|
62
|
-
[1m[36mSQL (0.
|
55
|
+
[1m[36m (0.1ms)[0m [1mSELECT "syncs"."subject_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_type" = ?[0m [["subject_type", "Team"]]
|
56
|
+
[1m[35mTeam Load (0.1ms)[0m SELECT "teams".* FROM "teams" WHERE (1=1) LIMIT 50
|
57
|
+
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? LIMIT 46[0m [["subject_destroyed", "t"]]
|
58
|
+
Completed 200 OK in 9ms (Views: 0.8ms | ActiveRecord: 0.5ms)
|
59
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
60
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
61
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
62
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "First"], ["created_at", "2016-03-29 13:58:20.891750"], ["updated_at", "2016-03-29 13:58:20.891750"]]
|
63
63
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
64
|
-
[1m[36m (0.
|
65
|
-
[1m[35mSQL (0.
|
66
|
-
[1m[36m (0.
|
67
|
-
[1m[35m (0.
|
68
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Third"], ["created_at", "2016-03-29
|
64
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 13:58:20.893318"], ["updated_at", "2016-03-29 13:58:20.893318"]]
|
66
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
67
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
68
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Third"], ["created_at", "2016-03-29 13:58:20.894727"], ["updated_at", "2016-03-29 13:58:20.894727"]]
|
69
69
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
70
70
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
71
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "fourth"], ["created_at", "2016-03-29
|
71
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "fourth"], ["created_at", "2016-03-29 13:58:20.896237"], ["updated_at", "2016-03-29 13:58:20.896237"]]
|
72
72
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
73
73
|
[1m[35mSyncableModels::Sync Exists (0.2ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 4], ["subject_type", "Team"], ["destination", "test"]]
|
74
74
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
75
|
-
[1m[35mSQL (0.
|
75
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 4], ["subject_type", "Team"], ["subject_external_id", "4"], ["created_at", "2016-03-29 13:58:20.924543"], ["updated_at", "2016-03-29 13:58:20.924543"]]
|
76
76
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
77
77
|
Processing by ImportApiController#teams as HTML
|
78
78
|
Parameters: {"destination"=>"test"}
|
79
79
|
[1m[35m (0.1ms)[0m SELECT "syncs"."subject_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_type" = ? [["subject_type", "Team"]]
|
80
|
-
[1m[36mTeam Load (0.
|
81
|
-
[1m[35mSyncableModels::Sync Load (0.
|
82
|
-
Completed 200 OK in
|
80
|
+
[1m[36mTeam Load (0.1ms)[0m [1mSELECT "teams".* FROM "teams" WHERE ("teams"."id" != 4) LIMIT 50[0m
|
81
|
+
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? LIMIT 47 [["subject_destroyed", "t"]]
|
82
|
+
Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.3ms)
|
83
83
|
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
84
|
-
[1m[35m (0.
|
84
|
+
[1m[35m (0.0ms)[0m begin transaction
|
85
85
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
86
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29
|
86
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:20.936092"], ["updated_at", "2016-03-29 13:58:20.936092"]]
|
87
87
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
88
|
-
[1m[35m (0.
|
89
|
-
[1m[36mSQL (0.
|
90
|
-
[1m[35m (0.
|
91
|
-
[1m[36m (0.
|
92
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29
|
88
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
89
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Second"], ["created_at", "2016-03-29 13:58:20.937969"], ["updated_at", "2016-03-29 13:58:20.937969"]]
|
90
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
91
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
92
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 13:58:20.939492"], ["updated_at", "2016-03-29 13:58:20.939492"]]
|
93
93
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
94
|
-
[1m[35m (0.
|
95
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "fourth"], ["created_at", "2016-03-29
|
96
|
-
[1m[35m (0.
|
94
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
95
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "fourth"], ["created_at", "2016-03-29 13:58:20.940960"], ["updated_at", "2016-03-29 13:58:20.940960"]]
|
96
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
97
97
|
[1m[36mSyncableModels::Sync Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 3], ["subject_type", "Team"], ["destination", "test"]]
|
98
|
-
[1m[35m (0.
|
99
|
-
[1m[36mSQL (0.
|
100
|
-
[1m[35m (0.
|
101
|
-
[1m[36mSyncableModels::Sync Exists (0.
|
102
|
-
[1m[35m (0.
|
103
|
-
[1m[36mSQL (0.
|
104
|
-
[1m[35m (0.
|
105
|
-
[1m[36m (0.
|
98
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
99
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 3], ["subject_type", "Team"], ["subject_external_id", "3"], ["created_at", "2016-03-29 13:58:20.944155"], ["updated_at", "2016-03-29 13:58:20.944155"]]
|
100
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
101
|
+
[1m[36mSyncableModels::Sync Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 4], ["subject_type", "Team"], ["destination", "test"]]
|
102
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
103
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 4], ["subject_type", "Team"], ["subject_external_id", "4"], ["created_at", "2016-03-29 13:58:20.947231"], ["updated_at", "2016-03-29 13:58:20.947231"]]
|
104
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
105
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
106
106
|
[1m[35mSQL (0.2ms)[0m UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 3], ["subject_type", "Team"]]
|
107
107
|
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "teams" WHERE "teams"."id" = ?[0m [["id", 3]]
|
108
|
-
[1m[35mSQL (0.
|
108
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "3"]]
|
109
109
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
110
110
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
111
111
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 4], ["subject_type", "Team"]]
|
112
|
-
[1m[35mSQL (0.
|
112
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 4]]
|
113
113
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "4"]]
|
114
|
-
[1m[35m (0.
|
114
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
115
115
|
Processing by ImportApiController#teams as HTML
|
116
116
|
Parameters: {"destination"=>"test"}
|
117
117
|
[1m[36m (0.1ms)[0m [1mSELECT "syncs"."subject_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_type" = ?[0m [["subject_type", "Team"]]
|
118
|
-
[1m[35mTeam Load (0.
|
119
|
-
[1m[36mSyncableModels::Sync Load (0.
|
120
|
-
Completed 200 OK in
|
121
|
-
[1m[35m (0.
|
118
|
+
[1m[35mTeam Load (0.1ms)[0m SELECT "teams".* FROM "teams" WHERE ("teams"."id" IS NOT NULL) LIMIT 50
|
119
|
+
[1m[36mSyncableModels::Sync Load (0.2ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? LIMIT 48[0m [["subject_destroyed", "t"]]
|
120
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
|
121
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
122
122
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
123
123
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
124
|
-
[1m[36mSQL (0.
|
125
|
-
[1m[35m (0.
|
126
|
-
[1m[36m (0.
|
127
|
-
[1m[35mSQL (0.
|
124
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "First"], ["created_at", "2016-03-29 13:58:20.958904"], ["updated_at", "2016-03-29 13:58:20.958904"]]
|
125
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
126
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
127
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 13:58:20.960587"], ["updated_at", "2016-03-29 13:58:20.960587"]]
|
128
128
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
129
|
-
[1m[35m (0.
|
130
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Third"], ["created_at", "2016-03-29
|
131
|
-
[1m[35m (0.
|
132
|
-
[1m[36m (0.
|
133
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "fourth"], ["created_at", "2016-03-29
|
129
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
130
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Third"], ["created_at", "2016-03-29 13:58:20.962156"], ["updated_at", "2016-03-29 13:58:20.962156"]]
|
131
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
132
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
133
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "fourth"], ["created_at", "2016-03-29 13:58:20.963476"], ["updated_at", "2016-03-29 13:58:20.963476"]]
|
134
134
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
135
|
-
[1m[35mSyncableModels::Sync Exists (0.
|
135
|
+
[1m[35mSyncableModels::Sync Exists (0.0ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 3], ["subject_type", "Team"], ["destination", "test"]]
|
136
136
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
137
|
-
[1m[35mSQL (0.
|
137
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 3], ["subject_type", "Team"], ["subject_external_id", "3"], ["created_at", "2016-03-29 13:58:20.966705"], ["updated_at", "2016-03-29 13:58:20.966705"]]
|
138
138
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
139
|
-
[1m[35mSyncableModels::Sync Exists (0.
|
139
|
+
[1m[35mSyncableModels::Sync Exists (0.0ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 4], ["subject_type", "Team"], ["destination", "test"]]
|
140
140
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141
|
-
[1m[35mSQL (0.
|
141
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 4], ["subject_type", "Team"], ["subject_external_id", "4"], ["created_at", "2016-03-29 13:58:20.970096"], ["updated_at", "2016-03-29 13:58:20.970096"]]
|
142
142
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
143
143
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
144
144
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 3], ["subject_type", "Team"]]
|
145
|
-
[1m[35mSQL (0.
|
145
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 3]]
|
146
146
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "3"]]
|
147
147
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
148
|
-
[1m[36m (0.
|
148
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
149
149
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 4], ["subject_type", "Team"]]
|
150
|
-
[1m[36mSQL (0.
|
150
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "teams" WHERE "teams"."id" = ?[0m [["id", 4]]
|
151
151
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "4"]]
|
152
|
-
[1m[36m (0.
|
152
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
153
153
|
Processing by ImportApiController#teams as HTML
|
154
154
|
Parameters: {"destination"=>"test"}
|
155
|
-
[1m[35m (0.
|
156
|
-
[1m[36mTeam Load (0.
|
155
|
+
[1m[35m (0.0ms)[0m SELECT "syncs"."subject_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_type" = ? [["subject_type", "Team"]]
|
156
|
+
[1m[36mTeam Load (0.1ms)[0m [1mSELECT "teams".* FROM "teams" WHERE ("teams"."id" IS NOT NULL) LIMIT 50[0m
|
157
157
|
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? LIMIT 48 [["subject_destroyed", "t"]]
|
158
|
-
Completed 200 OK in
|
159
|
-
[1m[36m (0.
|
160
|
-
[1m[35m (0.
|
161
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
162
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:41.872975"], ["updated_at", "2016-03-29 11:40:41.872975"]]
|
163
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
164
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
165
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Second"], ["created_at", "2016-03-29 11:40:41.875156"], ["updated_at", "2016-03-29 11:40:41.875156"]]
|
166
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
158
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
159
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
160
|
+
[1m[35m (0.0ms)[0m begin transaction
|
167
161
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
168
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "
|
169
|
-
[1m[36m (0.
|
170
|
-
[1m[35m (0.
|
171
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "
|
172
|
-
[1m[35m (0.
|
173
|
-
[1m[
|
162
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:20.981226"], ["updated_at", "2016-03-29 13:58:20.981226"]]
|
163
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
164
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
165
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Second"], ["created_at", "2016-03-29 13:58:20.982816"], ["updated_at", "2016-03-29 13:58:20.982816"]]
|
166
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
167
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
168
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 13:58:20.984232"], ["updated_at", "2016-03-29 13:58:20.984232"]]
|
169
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
170
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
171
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "fourth"], ["created_at", "2016-03-29 13:58:20.985560"], ["updated_at", "2016-03-29 13:58:20.985560"]]
|
172
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
173
|
+
[1m[36mSyncableModels::Sync Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 3], ["subject_type", "Team"], ["destination", "test"]]
|
174
174
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
175
|
-
[1m[36mSQL (0.
|
175
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 3], ["subject_type", "Team"], ["subject_external_id", "3"], ["created_at", "2016-03-29 13:58:20.988720"], ["updated_at", "2016-03-29 13:58:20.988720"]]
|
176
176
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
177
177
|
[1m[36mSyncableModels::Sync Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 4], ["subject_type", "Team"], ["destination", "test"]]
|
178
|
-
[1m[35m (0.
|
179
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 4], ["subject_type", "Team"], ["subject_external_id", "4"], ["created_at", "2016-03-29
|
180
|
-
[1m[35m (0.
|
178
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
179
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 4], ["subject_type", "Team"], ["subject_external_id", "4"], ["created_at", "2016-03-29 13:58:20.992053"], ["updated_at", "2016-03-29 13:58:20.992053"]]
|
180
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
181
181
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
182
182
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 3], ["subject_type", "Team"]]
|
183
183
|
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "teams" WHERE "teams"."id" = ?[0m [["id", 3]]
|
@@ -187,38 +187,38 @@ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms)
|
|
187
187
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 4], ["subject_type", "Team"]]
|
188
188
|
[1m[35mSQL (0.1ms)[0m DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 4]]
|
189
189
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "4"]]
|
190
|
-
[1m[35m (0.
|
190
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
191
191
|
Processing by ImportApiController#teams as HTML
|
192
192
|
Parameters: {"destination"=>"test", "count"=>"3"}
|
193
193
|
[1m[36m (0.1ms)[0m [1mSELECT "syncs"."subject_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_type" = ?[0m [["subject_type", "Team"]]
|
194
194
|
[1m[35mTeam Load (0.2ms)[0m SELECT "teams".* FROM "teams" WHERE ("teams"."id" IS NOT NULL) LIMIT 3
|
195
|
-
[1m[36mSyncableModels::Sync Load (0.
|
196
|
-
Completed 200 OK in
|
197
|
-
[1m[35m (0.
|
198
|
-
[1m[36m (0.
|
199
|
-
[1m[35m (0.
|
200
|
-
[1m[36mSQL (0.
|
195
|
+
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? LIMIT 1[0m [["subject_destroyed", "t"]]
|
196
|
+
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
|
197
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
198
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
199
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
200
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "First"], ["created_at", "2016-03-29 13:58:21.003505"], ["updated_at", "2016-03-29 13:58:21.003505"]]
|
201
201
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
202
|
-
[1m[36m (0.
|
203
|
-
[1m[35mSQL (0.
|
202
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
203
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 13:58:21.005292"], ["updated_at", "2016-03-29 13:58:21.005292"]]
|
204
204
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
205
|
-
[1m[35m (0.
|
206
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Third"], ["created_at", "2016-03-29
|
205
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Third"], ["created_at", "2016-03-29 13:58:21.006706"], ["updated_at", "2016-03-29 13:58:21.006706"]]
|
207
207
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
208
|
-
[1m[36m (0.
|
209
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "fourth"], ["created_at", "2016-03-29
|
210
|
-
[1m[36m (0.
|
208
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "fourth"], ["created_at", "2016-03-29 13:58:21.008165"], ["updated_at", "2016-03-29 13:58:21.008165"]]
|
210
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
211
211
|
[1m[35mSyncableModels::Sync Exists (0.1ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 3], ["subject_type", "Team"], ["destination", "test"]]
|
212
|
-
[1m[36m (0.
|
213
|
-
[1m[35mSQL (0.
|
214
|
-
[1m[36m (0.
|
212
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
213
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 3], ["subject_type", "Team"], ["subject_external_id", "3"], ["created_at", "2016-03-29 13:58:21.011692"], ["updated_at", "2016-03-29 13:58:21.011692"]]
|
214
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
215
215
|
[1m[35mSyncableModels::Sync Exists (0.1ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 4], ["subject_type", "Team"], ["destination", "test"]]
|
216
|
-
[1m[36m (0.
|
217
|
-
[1m[35mSQL (0.
|
216
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
217
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 4], ["subject_type", "Team"], ["subject_external_id", "4"], ["created_at", "2016-03-29 13:58:21.014896"], ["updated_at", "2016-03-29 13:58:21.014896"]]
|
218
218
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
219
|
-
[1m[35m (0.
|
219
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
220
220
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 3], ["subject_type", "Team"]]
|
221
|
-
[1m[35mSQL (0.
|
221
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 3]]
|
222
222
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "3"]]
|
223
223
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
224
224
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
@@ -228,64 +228,64 @@ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.4ms)
|
|
228
228
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229
229
|
Processing by ImportApiController#teams as HTML
|
230
230
|
Parameters: {"destination"=>"test", "count"=>"3"}
|
231
|
-
[1m[35m (0.
|
231
|
+
[1m[35m (0.0ms)[0m SELECT "syncs"."subject_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_type" = ? [["subject_type", "Team"]]
|
232
232
|
[1m[36mTeam Load (0.2ms)[0m [1mSELECT "teams".* FROM "teams" WHERE ("teams"."id" IS NOT NULL) LIMIT 3[0m
|
233
233
|
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? LIMIT 1 [["subject_destroyed", "t"]]
|
234
|
-
Completed 200 OK in
|
235
|
-
[1m[36m (0.
|
234
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
|
235
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
236
236
|
[1m[35m (0.1ms)[0m begin transaction
|
237
237
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
238
|
-
[1m[35mSQL (0.
|
239
|
-
[1m[36m (0.
|
240
|
-
[1m[35m (0.
|
241
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Second"], ["created_at", "2016-03-29
|
242
|
-
[1m[35m (0.
|
238
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:21.025945"], ["updated_at", "2016-03-29 13:58:21.025945"]]
|
239
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Second"], ["created_at", "2016-03-29 13:58:21.027373"], ["updated_at", "2016-03-29 13:58:21.027373"]]
|
242
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
243
243
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
244
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29
|
244
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 13:58:21.029195"], ["updated_at", "2016-03-29 13:58:21.029195"]]
|
245
245
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
246
246
|
Processing by ImportApiController#sync_teams as HTML
|
247
247
|
Parameters: {"destination"=>"test", "ids"=>["1", "2"]}
|
248
248
|
[1m[35m (0.2ms)[0m SELECT "syncs"."subject_external_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('1', '2') [["subject_destroyed", "t"]]
|
249
|
-
[1m[36mSyncableModels::Sync Load (0.
|
250
|
-
[1m[35mTeam Load (0.
|
249
|
+
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('1', '2')[0m [["subject_destroyed", "t"]]
|
250
|
+
[1m[35mTeam Load (0.1ms)[0m SELECT "teams".* FROM "teams" WHERE "teams"."id" IN (1, 2)
|
251
251
|
[1m[36mSyncableModels::Sync Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 1], ["subject_type", "Team"], ["destination", "test"]]
|
252
252
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
253
|
-
[1m[36mSQL (0.
|
253
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29 13:58:21.035852"], ["updated_at", "2016-03-29 13:58:21.035852"]]
|
254
254
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
255
|
-
[1m[36mSyncableModels::Sync Exists (0.
|
255
|
+
[1m[36mSyncableModels::Sync Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 2], ["subject_type", "Team"], ["destination", "test"]]
|
256
256
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
257
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 2], ["subject_type", "Team"], ["subject_external_id", "2"], ["created_at", "2016-03-29
|
257
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 2], ["subject_type", "Team"], ["subject_external_id", "2"], ["created_at", "2016-03-29 13:58:21.038598"], ["updated_at", "2016-03-29 13:58:21.038598"]]
|
258
258
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
259
|
-
Completed 200 OK in
|
259
|
+
Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 1.0ms)
|
260
260
|
[1m[36mTeam Load (0.2ms)[0m [1mSELECT "teams".* FROM "teams" INNER JOIN "syncs" ON "syncs"."subject_id" = "teams"."id" AND "syncs"."subject_type" = ? WHERE "syncs"."destination" = ?[0m [["subject_type", "Team"], ["destination", "test"]]
|
261
261
|
[1m[35m (0.2ms)[0m rollback transaction
|
262
|
-
[1m[36m (0.
|
263
|
-
[1m[35m (0.
|
264
|
-
[1m[36mSQL (0.
|
265
|
-
[1m[35m (0.
|
266
|
-
[1m[36m (0.
|
267
|
-
[1m[35mSQL (0.
|
262
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
263
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
264
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "First"], ["created_at", "2016-03-29 13:58:21.045410"], ["updated_at", "2016-03-29 13:58:21.045410"]]
|
265
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
266
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
267
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 13:58:21.047310"], ["updated_at", "2016-03-29 13:58:21.047310"]]
|
268
268
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
269
269
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
270
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Third"], ["created_at", "2016-03-29
|
270
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Third"], ["created_at", "2016-03-29 13:58:21.048970"], ["updated_at", "2016-03-29 13:58:21.048970"]]
|
271
271
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
272
272
|
[1m[36mSyncableModels::Sync Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 1], ["subject_type", "Team"], ["destination", "test"]]
|
273
273
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
274
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29
|
275
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
276
|
-
[1m[36mSyncableModels::Sync Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 2], ["subject_type", "Team"], ["destination", "test"]]
|
277
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
278
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 2], ["subject_type", "Team"], ["subject_external_id", "2"], ["created_at", "2016-03-29 11:40:41.977109"], ["updated_at", "2016-03-29 11:40:41.977109"]]
|
274
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29 13:58:21.052690"], ["updated_at", "2016-03-29 13:58:21.052690"]]
|
279
275
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
276
|
+
[1m[36mSyncableModels::Sync Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 2], ["subject_type", "Team"], ["destination", "test"]]
|
277
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
278
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 2], ["subject_type", "Team"], ["subject_external_id", "2"], ["created_at", "2016-03-29 13:58:21.055820"], ["updated_at", "2016-03-29 13:58:21.055820"]]
|
279
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
280
280
|
[1m[36mSyncableModels::Sync Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 3], ["subject_type", "Team"], ["destination", "test"]]
|
281
281
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
282
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 3], ["subject_type", "Team"], ["subject_external_id", "3"], ["created_at", "2016-03-29
|
283
|
-
[1m[35m (0.
|
282
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 3], ["subject_type", "Team"], ["subject_external_id", "3"], ["created_at", "2016-03-29 13:58:21.058779"], ["updated_at", "2016-03-29 13:58:21.058779"]]
|
283
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
284
284
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
285
285
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
|
286
286
|
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "teams" WHERE "teams"."id" = ?[0m [["id", 1]]
|
287
287
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
|
288
|
-
[1m[36m (0.
|
288
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
289
289
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
290
290
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 2], ["subject_type", "Team"]]
|
291
291
|
[1m[35mSQL (0.1ms)[0m DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 2]]
|
@@ -294,43 +294,43 @@ Completed 200 OK in 13ms (Views: 0.2ms | ActiveRecord: 1.2ms)
|
|
294
294
|
Processing by ImportApiController#sync_teams as HTML
|
295
295
|
Parameters: {"destination"=>"test", "ids"=>["1", "2"]}
|
296
296
|
[1m[36m (0.1ms)[0m [1mSELECT "syncs"."subject_external_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('1', '2')[0m [["subject_destroyed", "t"]]
|
297
|
-
[1m[35mSyncableModels::Sync Load (0.
|
297
|
+
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('1', '2') [["subject_destroyed", "t"]]
|
298
298
|
[1m[36mTeam Load (0.1ms)[0m [1mSELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1[0m [["id", 1]]
|
299
299
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300
300
|
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "syncs" WHERE "syncs"."id" = ?[0m [["id", 1]]
|
301
301
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
302
|
-
[1m[36mTeam Load (0.
|
302
|
+
[1m[36mTeam Load (0.0ms)[0m [1mSELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1[0m [["id", 2]]
|
303
303
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
304
304
|
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "syncs" WHERE "syncs"."id" = ?[0m [["id", 2]]
|
305
305
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
306
306
|
[1m[36mTeam Load (0.1ms)[0m [1mSELECT "teams".* FROM "teams" WHERE 1=0[0m
|
307
|
-
Completed 200 OK in
|
307
|
+
Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
|
308
308
|
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "syncs"
|
309
309
|
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
310
310
|
[1m[35m (0.1ms)[0m begin transaction
|
311
|
-
[1m[36m (0.
|
312
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29
|
313
|
-
[1m[36m (0.
|
311
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
312
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:21.073056"], ["updated_at", "2016-03-29 13:58:21.073056"]]
|
313
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
314
314
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
315
|
-
[1m[36mSQL (0.
|
315
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Second"], ["created_at", "2016-03-29 13:58:21.074976"], ["updated_at", "2016-03-29 13:58:21.074976"]]
|
316
316
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
317
317
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
318
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29
|
319
|
-
[1m[36m (0.
|
320
|
-
[1m[35mSyncableModels::Sync Exists (0.
|
321
|
-
[1m[36m (0.
|
322
|
-
[1m[35mSQL (0.
|
318
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 13:58:21.076722"], ["updated_at", "2016-03-29 13:58:21.076722"]]
|
319
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
320
|
+
[1m[35mSyncableModels::Sync Exists (0.0ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 1], ["subject_type", "Team"], ["destination", "test"]]
|
321
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
322
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29 13:58:21.080113"], ["updated_at", "2016-03-29 13:58:21.080113"]]
|
323
323
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324
324
|
[1m[35mSyncableModels::Sync Exists (0.1ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 2], ["subject_type", "Team"], ["destination", "test"]]
|
325
325
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
326
|
-
[1m[35mSQL (0.
|
326
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 2], ["subject_type", "Team"], ["subject_external_id", "2"], ["created_at", "2016-03-29 13:58:21.083438"], ["updated_at", "2016-03-29 13:58:21.083438"]]
|
327
327
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
328
328
|
[1m[35mSyncableModels::Sync Exists (0.1ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 3], ["subject_type", "Team"], ["destination", "test"]]
|
329
|
-
[1m[36m (0.
|
330
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 3], ["subject_type", "Team"], ["subject_external_id", "3"], ["created_at", "2016-03-29
|
329
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
330
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 3], ["subject_type", "Team"], ["subject_external_id", "3"], ["created_at", "2016-03-29 13:58:21.086360"], ["updated_at", "2016-03-29 13:58:21.086360"]]
|
331
331
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
332
|
-
[1m[35m (0.
|
333
|
-
[1m[36mSQL (
|
332
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
333
|
+
[1m[36mSQL (7.7ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 1], ["subject_type", "Team"]]
|
334
334
|
[1m[35mSQL (0.1ms)[0m DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
|
335
335
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "1"]]
|
336
336
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
@@ -338,369 +338,369 @@ Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.1ms)
|
|
338
338
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 2], ["subject_type", "Team"]]
|
339
339
|
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "teams" WHERE "teams"."id" = ?[0m [["id", 2]]
|
340
340
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "2"]]
|
341
|
-
[1m[36m (0.
|
341
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
342
342
|
Processing by ImportApiController#sync_teams as HTML
|
343
343
|
Parameters: {"destination"=>"test", "ids"=>["1", "2"]}
|
344
344
|
[1m[35m (0.1ms)[0m SELECT "syncs"."subject_external_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('1', '2') [["subject_destroyed", "t"]]
|
345
345
|
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('1', '2')[0m [["subject_destroyed", "t"]]
|
346
|
-
[1m[35mTeam Load (0.
|
346
|
+
[1m[35mTeam Load (0.0ms)[0m SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["id", 1]]
|
347
347
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
348
348
|
[1m[35mSQL (0.1ms)[0m DELETE FROM "syncs" WHERE "syncs"."id" = ? [["id", 1]]
|
349
|
-
[1m[36m (0.
|
350
|
-
[1m[35mTeam Load (0.
|
351
|
-
[1m[36m (0.
|
349
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
350
|
+
[1m[35mTeam Load (0.0ms)[0m SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["id", 2]]
|
351
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
352
352
|
[1m[35mSQL (0.1ms)[0m DELETE FROM "syncs" WHERE "syncs"."id" = ? [["id", 2]]
|
353
353
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
354
354
|
[1m[35mTeam Load (0.1ms)[0m SELECT "teams".* FROM "teams" WHERE 1=0
|
355
|
-
Completed 200 OK in
|
355
|
+
Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
|
356
356
|
[1m[36mSyncableModels::Sync Load (0.2ms)[0m [1mSELECT "syncs".* FROM "syncs" ORDER BY "syncs"."id" ASC LIMIT 1[0m
|
357
|
-
[1m[35mTeam Load (0.
|
358
|
-
[1m[36m (0.
|
359
|
-
[1m[35m (0.
|
357
|
+
[1m[35mTeam Load (0.1ms)[0m SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? LIMIT 1 [["id", 3]]
|
358
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
359
|
+
[1m[35m (0.0ms)[0m begin transaction
|
360
360
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
361
|
-
[1m[35mSQL (0.
|
362
|
-
[1m[36m (0.
|
363
|
-
[1m[35m (0.
|
364
|
-
[1m[36mSQL (0.
|
361
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.115406"], ["updated_at", "2016-03-29 13:58:21.115406"]]
|
362
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
363
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
364
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Second"], ["uuid", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"], ["created_at", "2016-03-29 13:58:21.117442"], ["updated_at", "2016-03-29 13:58:21.117442"]]
|
365
365
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
366
|
-
[1m[36m (0.
|
367
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Third"], ["uuid", "
|
368
|
-
[1m[36m (0.
|
369
|
-
[1m[35mSyncableModels::Sync Exists (0.
|
370
|
-
[1m[36m (0.
|
371
|
-
[1m[35mSQL (0.
|
372
|
-
[1m[36m (0.
|
366
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
367
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Third"], ["uuid", "4c11f439-2067-47ca-ad2b-f074bb2376db"], ["created_at", "2016-03-29 13:58:21.119040"], ["updated_at", "2016-03-29 13:58:21.119040"]]
|
368
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
369
|
+
[1m[35mSyncableModels::Sync Exists (0.0ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 1], ["subject_type", "Project"], ["destination", "test"]]
|
370
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
371
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Project"], ["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.122828"], ["updated_at", "2016-03-29 13:58:21.122828"]]
|
372
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
373
373
|
[1m[35mSyncableModels::Sync Exists (0.1ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 2], ["subject_type", "Project"], ["destination", "test"]]
|
374
|
-
[1m[36m (0.
|
375
|
-
[1m[35mSQL (0.
|
376
|
-
[1m[36m (0.
|
374
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
375
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 2], ["subject_type", "Project"], ["subject_external_id", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"], ["created_at", "2016-03-29 13:58:21.125833"], ["updated_at", "2016-03-29 13:58:21.125833"]]
|
376
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
377
377
|
[1m[35mSyncableModels::Sync Exists (0.1ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 3], ["subject_type", "Project"], ["destination", "test"]]
|
378
378
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
379
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 3], ["subject_type", "Project"], ["subject_external_id", "
|
380
|
-
[1m[36m (0.
|
379
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 3], ["subject_type", "Project"], ["subject_external_id", "4c11f439-2067-47ca-ad2b-f074bb2376db"], ["created_at", "2016-03-29 13:58:21.129273"], ["updated_at", "2016-03-29 13:58:21.129273"]]
|
380
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
381
381
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
382
382
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 1], ["subject_type", "Project"]]
|
383
383
|
[1m[35mProject Load (0.2ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
384
|
-
[1m[36mSQL (0.
|
385
|
-
[1m[35mSyncableModels::Sync Load (0.
|
386
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "
|
387
|
-
[1m[35m (0.
|
388
|
-
[1m[36m (0.
|
384
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ?[0m [["deleted_at", "2016-03-29 13:58:21.131155"], ["updated_at", "2016-03-29 13:58:21.132343"], ["id", 1]]
|
385
|
+
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
|
386
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
387
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
388
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
389
389
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 2], ["subject_type", "Project"]]
|
390
|
-
[1m[36mProject Load (0.
|
391
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29
|
392
|
-
[1m[36mSyncableModels::Sync Load (0.
|
393
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "
|
394
|
-
[1m[36m (0.
|
390
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
391
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 13:58:21.136492"], ["updated_at", "2016-03-29 13:58:21.137271"], ["id", 2]]
|
392
|
+
[1m[36mSyncableModels::Sync Load (0.0ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 2], ["subject_type", "Project"]]
|
393
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]]
|
394
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
395
395
|
Processing by ImportApiController#sync_projects as HTML
|
396
|
-
Parameters: {"destination"=>"test", "ids"=>["
|
397
|
-
[1m[35m (0.
|
398
|
-
[1m[36mSyncableModels::Sync Load (0.2ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('
|
399
|
-
[1m[35mProject Load (0.
|
400
|
-
[1m[36mProject Load (0.
|
401
|
-
[1m[35m (0.
|
402
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ?[0m [["subject_id", 1], ["subject_destroyed", "f"], ["updated_at", "2016-03-29
|
403
|
-
[1m[35m (0.
|
404
|
-
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["uuid", "
|
405
|
-
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "
|
396
|
+
Parameters: {"destination"=>"test", "ids"=>["784ce240-0ec5-45c9-9626-aede0b2be54d", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]}
|
397
|
+
[1m[35m (0.1ms)[0m SELECT "syncs"."subject_external_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('784ce240-0ec5-45c9-9626-aede0b2be54d', '68279581-6bcd-4c8d-bddc-0db1f0f906d3') [["subject_destroyed", "t"]]
|
398
|
+
[1m[36mSyncableModels::Sync Load (0.2ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('784ce240-0ec5-45c9-9626-aede0b2be54d', '68279581-6bcd-4c8d-bddc-0db1f0f906d3')[0m [["subject_destroyed", "t"]]
|
399
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
400
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
401
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
402
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ?[0m [["subject_id", 1], ["subject_destroyed", "f"], ["updated_at", "2016-03-29 13:58:21.144154"], ["id", 1]]
|
403
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
404
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["uuid", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]]
|
405
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]]
|
406
406
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
407
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", 2], ["subject_destroyed", "f"], ["updated_at", "2016-03-29
|
407
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", 2], ["subject_destroyed", "f"], ["updated_at", "2016-03-29 13:58:21.147350"], ["id", 2]]
|
408
408
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
409
409
|
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE 1=0
|
410
|
-
Completed 200 OK in
|
411
|
-
[1m[36mProject Load (0.
|
410
|
+
Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 1.2ms)
|
411
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
412
412
|
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
|
413
413
|
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 3]]
|
414
414
|
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "syncs"
|
415
415
|
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
416
|
-
[1m[35m (0.
|
416
|
+
[1m[35m (0.0ms)[0m begin transaction
|
417
417
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
418
|
-
[1m[35mSQL (0.
|
419
|
-
[1m[36m (0.
|
418
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.153575"], ["updated_at", "2016-03-29 13:58:21.153575"]]
|
419
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
420
420
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
421
|
-
[1m[36mSQL (0.
|
421
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Second"], ["uuid", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"], ["created_at", "2016-03-29 13:58:21.155171"], ["updated_at", "2016-03-29 13:58:21.155171"]]
|
422
422
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
423
|
-
[1m[36m (0.
|
424
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Third"], ["uuid", "
|
425
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
426
|
-
[1m[35mSyncableModels::Sync Exists (0.1ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 1], ["subject_type", "Project"], ["destination", "test"]]
|
427
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
428
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Project"], ["subject_external_id", "885e9172-f063-40aa-84d4-e09530b62dc9"], ["created_at", "2016-03-29 11:40:42.115361"], ["updated_at", "2016-03-29 11:40:42.115361"]]
|
423
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
424
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Third"], ["uuid", "4c11f439-2067-47ca-ad2b-f074bb2376db"], ["created_at", "2016-03-29 13:58:21.156715"], ["updated_at", "2016-03-29 13:58:21.156715"]]
|
429
425
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
426
|
+
[1m[35mSyncableModels::Sync Exists (0.0ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 1], ["subject_type", "Project"], ["destination", "test"]]
|
427
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
428
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Project"], ["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.159890"], ["updated_at", "2016-03-29 13:58:21.159890"]]
|
429
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
430
430
|
[1m[35mSyncableModels::Sync Exists (0.1ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 2], ["subject_type", "Project"], ["destination", "test"]]
|
431
431
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
432
|
-
[1m[35mSQL (0.
|
432
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 2], ["subject_type", "Project"], ["subject_external_id", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"], ["created_at", "2016-03-29 13:58:21.163060"], ["updated_at", "2016-03-29 13:58:21.163060"]]
|
433
433
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
434
434
|
[1m[35mSyncableModels::Sync Exists (0.1ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 3], ["subject_type", "Project"], ["destination", "test"]]
|
435
|
-
[1m[36m (0.
|
436
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 3], ["subject_type", "Project"], ["subject_external_id", "
|
435
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
436
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 3], ["subject_type", "Project"], ["subject_external_id", "4c11f439-2067-47ca-ad2b-f074bb2376db"], ["created_at", "2016-03-29 13:58:21.166322"], ["updated_at", "2016-03-29 13:58:21.166322"]]
|
437
437
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
438
|
-
[1m[35m (0.
|
438
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
439
439
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 1], ["subject_type", "Project"]]
|
440
440
|
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
441
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ?[0m [["deleted_at", "2016-03-29
|
442
|
-
[1m[35mSyncableModels::Sync Load (0.
|
443
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "
|
444
|
-
[1m[35m (0.
|
445
|
-
[1m[36m (0.
|
441
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ?[0m [["deleted_at", "2016-03-29 13:58:21.168330"], ["updated_at", "2016-03-29 13:58:21.169357"], ["id", 1]]
|
442
|
+
[1m[35mSyncableModels::Sync Load (0.0ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
|
443
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
444
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
445
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
446
446
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 2], ["subject_type", "Project"]]
|
447
|
-
[1m[36mProject Load (0.
|
448
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29
|
449
|
-
[1m[36mSyncableModels::Sync Load (0.
|
450
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "
|
451
|
-
[1m[36m (0.
|
447
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
448
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 13:58:21.172096"], ["updated_at", "2016-03-29 13:58:21.172921"], ["id", 2]]
|
449
|
+
[1m[36mSyncableModels::Sync Load (0.0ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 2], ["subject_type", "Project"]]
|
450
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]]
|
451
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
452
452
|
Processing by ImportApiController#sync_projects as HTML
|
453
|
-
Parameters: {"destination"=>"test", "ids"=>["
|
454
|
-
[1m[35m (0.1ms)[0m SELECT "syncs"."subject_external_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('
|
455
|
-
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('
|
456
|
-
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "
|
457
|
-
[1m[36mProject Load (0.
|
458
|
-
[1m[35m (0.
|
459
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ?[0m [["subject_id", 1], ["subject_destroyed", "f"], ["updated_at", "2016-03-29
|
460
|
-
[1m[35m (0.
|
461
|
-
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["uuid", "
|
462
|
-
[1m[35mProject Load (0.
|
453
|
+
Parameters: {"destination"=>"test", "ids"=>["784ce240-0ec5-45c9-9626-aede0b2be54d", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]}
|
454
|
+
[1m[35m (0.1ms)[0m SELECT "syncs"."subject_external_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('784ce240-0ec5-45c9-9626-aede0b2be54d', '68279581-6bcd-4c8d-bddc-0db1f0f906d3') [["subject_destroyed", "t"]]
|
455
|
+
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('784ce240-0ec5-45c9-9626-aede0b2be54d', '68279581-6bcd-4c8d-bddc-0db1f0f906d3')[0m [["subject_destroyed", "t"]]
|
456
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
457
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
458
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
459
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ?[0m [["subject_id", 1], ["subject_destroyed", "f"], ["updated_at", "2016-03-29 13:58:21.179342"], ["id", 1]]
|
460
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
461
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["uuid", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]]
|
462
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]]
|
463
463
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
464
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", 2], ["subject_destroyed", "f"], ["updated_at", "2016-03-29
|
465
|
-
[1m[36m (0.
|
464
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", 2], ["subject_destroyed", "f"], ["updated_at", "2016-03-29 13:58:21.182304"], ["id", 2]]
|
465
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
466
466
|
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE 1=0
|
467
|
-
Completed 200 OK in
|
467
|
+
Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 0.8ms)
|
468
468
|
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
469
|
-
[1m[35mProject Load (0.
|
470
|
-
[1m[36mProject Load (0.
|
469
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
|
470
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 3]]
|
471
471
|
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
|
472
472
|
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 2], ["subject_type", "Project"]]
|
473
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
474
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
475
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
476
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("name", "uuid", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "First"], ["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"], ["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"], ["created_at", "2016-03-29 11:40:42.158774"], ["updated_at", "2016-03-29 11:40:42.158774"]]
|
477
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
478
|
-
[1m[36mProject Load (0.2ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["external_id", "28af9b3d-0338-4968-b949-c1b2ba644db9"]]
|
479
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
480
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("uuid", "external_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["uuid", "30a22245-bc03-41c5-9fbc-f3a94f413a17"], ["external_id", "28af9b3d-0338-4968-b949-c1b2ba644db9"], ["name", "ImportedProject"], ["created_at", "2016-03-29 11:40:42.163545"], ["updated_at", "2016-03-29 11:40:42.163545"]]
|
481
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
482
|
-
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"]]
|
483
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
484
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 1], ["subject_type", "Project"]]
|
485
|
-
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
486
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ?[0m [["deleted_at", "2016-03-29 11:40:42.167615"], ["updated_at", "2016-03-29 11:40:42.168787"], ["id", 1]]
|
487
|
-
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
|
488
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
|
489
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
490
|
-
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["external_id", "28af9b3d-0338-4968-b949-c1b2ba644db9"]]
|
491
473
|
[1m[35m (0.2ms)[0m rollback transaction
|
492
474
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
493
|
-
[1m[35m (0.
|
494
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "projects" ("name", "uuid", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "First"], ["uuid", "
|
475
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
476
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "projects" ("name", "uuid", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "First"], ["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"], ["created_at", "2016-03-29 13:58:21.189574"], ["updated_at", "2016-03-29 13:58:21.189574"]]
|
477
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
478
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["external_id", "954725ef-3a4c-44ef-9cd5-37af1167ccbd"]]
|
479
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
480
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "projects" ("uuid", "external_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["uuid", "f8be575d-0a96-470d-92a0-6dc3d3d999b8"], ["external_id", "954725ef-3a4c-44ef-9cd5-37af1167ccbd"], ["name", "ImportedProject"], ["created_at", "2016-03-29 13:58:21.192528"], ["updated_at", "2016-03-29 13:58:21.192528"]]
|
495
481
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
496
|
-
[1m[36mProject Load (0.
|
497
|
-
[1m[35m (0.
|
498
|
-
[1m[36mSQL (0.
|
482
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"]]
|
483
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
484
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 1], ["subject_type", "Project"]]
|
485
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
486
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ?[0m [["deleted_at", "2016-03-29 13:58:21.195435"], ["updated_at", "2016-03-29 13:58:21.196184"], ["id", 1]]
|
487
|
+
[1m[35mSyncableModels::Sync Load (0.0ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
|
488
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
499
489
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
500
|
-
[1m[36mProject Load (0.
|
501
|
-
[1m[35m (0.1ms)[0m
|
502
|
-
[1m[
|
490
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["external_id", "954725ef-3a4c-44ef-9cd5-37af1167ccbd"]]
|
491
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
492
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
493
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
494
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "projects" ("name", "uuid", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "First"], ["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"], ["created_at", "2016-03-29 13:58:21.200293"], ["updated_at", "2016-03-29 13:58:21.200293"]]
|
495
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
496
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["external_id", "5d922f9f-c155-4bcb-a9b0-b1d9000923ac"]]
|
497
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
498
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "projects" ("uuid", "external_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["uuid", "01292962-db27-4b1f-9823-6bcac06c0378"], ["external_id", "5d922f9f-c155-4bcb-a9b0-b1d9000923ac"], ["name", "ImportedProject"], ["created_at", "2016-03-29 13:58:21.203161"], ["updated_at", "2016-03-29 13:58:21.203161"]]
|
499
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
500
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"]]
|
501
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
502
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 1], ["subject_type", "Project"]]
|
503
503
|
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
504
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ?[0m [["deleted_at", "2016-03-29
|
505
|
-
[1m[35mSyncableModels::Sync Load (0.
|
506
|
-
[1m[36mSQL (0.
|
504
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ?[0m [["deleted_at", "2016-03-29 13:58:21.205685"], ["updated_at", "2016-03-29 13:58:21.206652"], ["id", 1]]
|
505
|
+
[1m[35mSyncableModels::Sync Load (0.0ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
|
506
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
507
507
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
508
|
-
[1m[36mProject Load (0.
|
508
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" ORDER BY "projects"."id" DESC LIMIT 1[0m
|
509
509
|
[1m[35m (0.2ms)[0m rollback transaction
|
510
510
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
511
|
-
[1m[35m (0.
|
512
|
-
[1m[36mSQL (0.
|
513
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
514
|
-
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["external_id", "aa9cc353-b9cb-419c-89cd-004fdbbc3f85"]]
|
515
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
516
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "projects" ("uuid", "external_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["uuid", "16c0509d-32eb-4776-b70d-322f306c500a"], ["external_id", "aa9cc353-b9cb-419c-89cd-004fdbbc3f85"], ["name", "ImportedProject"], ["created_at", "2016-03-29 11:40:42.194813"], ["updated_at", "2016-03-29 11:40:42.194813"]]
|
511
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
512
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "projects" ("name", "uuid", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "First"], ["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"], ["created_at", "2016-03-29 13:58:21.210832"], ["updated_at", "2016-03-29 13:58:21.210832"]]
|
517
513
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
518
|
-
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["external_id", "
|
519
|
-
[1m[35m (0.
|
520
|
-
[1m[36mSQL (0.1ms)[0m [
|
514
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["external_id", "e0876bc8-162d-4a23-87cb-3e8dc82a8956"]]
|
515
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
516
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "projects" ("uuid", "external_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["uuid", "42a0754a-89cb-40e5-b6f7-25d1d429a17f"], ["external_id", "e0876bc8-162d-4a23-87cb-3e8dc82a8956"], ["name", "ImportedProject"], ["created_at", "2016-03-29 13:58:21.213490"], ["updated_at", "2016-03-29 13:58:21.213490"]]
|
517
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
518
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"]]
|
519
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
520
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 1], ["subject_type", "Project"]]
|
521
521
|
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
522
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ?[0m [["deleted_at", "2016-03-29
|
523
|
-
[1m[35mSyncableModels::Sync Load (0.
|
524
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "
|
525
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
526
|
-
[1m[36mProject Load (0.2ms)[0m [1mSELECT "projects".* FROM "projects" ORDER BY "projects"."id" DESC LIMIT 1[0m
|
527
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
528
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
529
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
530
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "projects" ("name", "uuid", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "First"], ["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"], ["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"], ["created_at", "2016-03-29 11:40:42.206634"], ["updated_at", "2016-03-29 11:40:42.206634"]]
|
522
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ?[0m [["deleted_at", "2016-03-29 13:58:21.215765"], ["updated_at", "2016-03-29 13:58:21.216499"], ["id", 1]]
|
523
|
+
[1m[35mSyncableModels::Sync Load (0.0ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
|
524
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
531
525
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
532
|
-
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects"
|
533
|
-
[1m[35m (0.1ms)[0m
|
534
|
-
[1m[
|
526
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" ORDER BY "projects"."id" DESC LIMIT 1[0m
|
527
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
528
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
529
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
530
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "projects" ("name", "uuid", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "First"], ["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"], ["created_at", "2016-03-29 13:58:21.220436"], ["updated_at", "2016-03-29 13:58:21.220436"]]
|
535
531
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
536
|
-
[1m[36mProject Load (0.
|
537
|
-
[1m[35m (0.
|
532
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["external_id", "cc8dab13-6dff-42bf-900f-4604b2684eb4"]]
|
533
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
534
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "projects" ("uuid", "external_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["uuid", "ea45ffe3-1c4f-4fde-ad77-478bf1db54d7"], ["external_id", "cc8dab13-6dff-42bf-900f-4604b2684eb4"], ["name", "ImportedProject"], ["created_at", "2016-03-29 13:58:21.222902"], ["updated_at", "2016-03-29 13:58:21.222902"]]
|
535
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
536
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"]]
|
537
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
538
538
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 1], ["subject_type", "Project"]]
|
539
|
-
[1m[35mProject Load (0.
|
540
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ?[0m [["deleted_at", "2016-03-29
|
539
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
540
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ?[0m [["deleted_at", "2016-03-29 13:58:21.225450"], ["updated_at", "2016-03-29 13:58:21.226190"], ["id", 1]]
|
541
541
|
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
|
542
|
-
[1m[36mSQL (0.
|
542
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
543
543
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
544
|
-
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["uuid", "
|
545
|
-
[1m[35m (0.
|
546
|
-
[1m[36m (0.
|
547
|
-
[1m[35m (0.
|
548
|
-
[1m[36mSQL (0.
|
549
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
550
|
-
[1m[36mTeam Load (0.2ms)[0m [1mSELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1[0m [["external_id", "42"]]
|
551
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
552
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "ImportedTeam"], ["external_id", "42"], ["created_at", "2016-03-29 11:40:42.268422"], ["updated_at", "2016-03-29 11:40:42.268422"]]
|
544
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
545
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
546
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
547
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
548
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "First"], ["external_id", "73"], ["created_at", "2016-03-29 13:58:21.230779"], ["updated_at", "2016-03-29 13:58:21.230779"]]
|
553
549
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
554
|
-
[1m[36mTeam Load (0.1ms)[0m [1mSELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1[0m [["external_id", "
|
555
|
-
[1m[35m (0.
|
556
|
-
[1m[36mSQL (0.1ms)[0m [
|
550
|
+
[1m[36mTeam Load (0.1ms)[0m [1mSELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1[0m [["external_id", "42"]]
|
551
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
552
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "ImportedTeam"], ["external_id", "42"], ["created_at", "2016-03-29 13:58:21.233308"], ["updated_at", "2016-03-29 13:58:21.233308"]]
|
553
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
554
|
+
[1m[36mTeam Load (0.0ms)[0m [1mSELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1[0m [["external_id", "73"]]
|
555
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
556
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 1], ["subject_type", "Team"]]
|
557
557
|
[1m[35mSQL (0.1ms)[0m DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
|
558
558
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "1"]]
|
559
559
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
560
560
|
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "teams"[0m
|
561
|
-
[1m[35mTeam Load (0.
|
562
|
-
[1m[36m (0.
|
561
|
+
[1m[35mTeam Load (0.0ms)[0m SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "42"]]
|
562
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
563
563
|
[1m[35m (0.1ms)[0m begin transaction
|
564
|
-
[1m[36m (0.
|
565
|
-
[1m[35mSQL (0.
|
566
|
-
[1m[36m (0.
|
564
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
565
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["external_id", "73"], ["created_at", "2016-03-29 13:58:21.239133"], ["updated_at", "2016-03-29 13:58:21.239133"]]
|
566
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
567
567
|
[1m[35mTeam Load (0.1ms)[0m SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "42"]]
|
568
|
-
[1m[36m (0.
|
569
|
-
[1m[35mSQL (0.
|
570
|
-
[1m[36m (0.
|
571
|
-
[1m[35mTeam Load (0.
|
572
|
-
[1m[36m (0.
|
568
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
569
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "ImportedTeam"], ["external_id", "42"], ["created_at", "2016-03-29 13:58:21.241410"], ["updated_at", "2016-03-29 13:58:21.241410"]]
|
570
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
571
|
+
[1m[35mTeam Load (0.0ms)[0m SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "73"]]
|
572
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
573
573
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
|
574
|
-
[1m[36mSQL (0.
|
575
|
-
[1m[35mSQL (0.
|
576
|
-
[1m[36m (0.
|
574
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "teams" WHERE "teams"."id" = ?[0m [["id", 1]]
|
575
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
|
576
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
577
577
|
[1m[35mTeam Load (0.1ms)[0m SELECT "teams".* FROM "teams" ORDER BY "teams"."id" DESC LIMIT 1
|
578
|
-
[1m[36m (0.
|
578
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
579
579
|
[1m[35m (0.1ms)[0m begin transaction
|
580
|
-
[1m[36m (0.
|
581
|
-
[1m[35mSQL (0.
|
582
|
-
[1m[36m (0.
|
583
|
-
[1m[35mTeam Load (0.
|
584
|
-
[1m[36m (0.
|
585
|
-
[1m[35mSQL (0.
|
580
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
581
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["external_id", "73"], ["created_at", "2016-03-29 13:58:21.246275"], ["updated_at", "2016-03-29 13:58:21.246275"]]
|
582
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
583
|
+
[1m[35mTeam Load (0.0ms)[0m SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "42"]]
|
584
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
585
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "ImportedTeam"], ["external_id", "42"], ["created_at", "2016-03-29 13:58:21.248351"], ["updated_at", "2016-03-29 13:58:21.248351"]]
|
586
586
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
587
|
-
[1m[35mTeam Load (0.
|
588
|
-
[1m[36m (0.
|
589
|
-
[1m[35mSQL (0.
|
587
|
+
[1m[35mTeam Load (0.0ms)[0m SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "73"]]
|
588
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
589
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
|
590
590
|
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "teams" WHERE "teams"."id" = ?[0m [["id", 1]]
|
591
|
-
[1m[35mSQL (0.
|
592
|
-
[1m[36m (0.
|
591
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
|
592
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
593
593
|
[1m[35mTeam Load (0.1ms)[0m SELECT "teams".* FROM "teams" ORDER BY "teams"."id" DESC LIMIT 1
|
594
|
-
[1m[36m (0.
|
595
|
-
[1m[35m (0.
|
596
|
-
[1m[36m (0.
|
597
|
-
[1m[35mSQL (0.
|
598
|
-
[1m[36m (0.
|
594
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
595
|
+
[1m[35m (0.0ms)[0m begin transaction
|
596
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
597
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["external_id", "73"], ["created_at", "2016-03-29 13:58:21.253215"], ["updated_at", "2016-03-29 13:58:21.253215"]]
|
598
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
599
599
|
[1m[35mTeam Load (0.1ms)[0m SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "42"]]
|
600
|
-
[1m[36m (0.
|
601
|
-
[1m[35mSQL (0.
|
602
|
-
[1m[36m (0.
|
603
|
-
[1m[35mTeam Load (0.
|
604
|
-
[1m[36m (0.
|
605
|
-
[1m[35mSQL (0.
|
600
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
601
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "ImportedTeam"], ["external_id", "42"], ["created_at", "2016-03-29 13:58:21.255253"], ["updated_at", "2016-03-29 13:58:21.255253"]]
|
602
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
603
|
+
[1m[35mTeam Load (0.0ms)[0m SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "73"]]
|
604
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
605
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
|
606
606
|
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "teams" WHERE "teams"."id" = ?[0m [["id", 1]]
|
607
|
-
[1m[35mSQL (0.
|
608
|
-
[1m[36m (0.
|
607
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
|
608
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
609
609
|
[1m[35mTeam Load (0.1ms)[0m SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? LIMIT 1 [["id", 1]]
|
610
|
-
[1m[36m (0.
|
610
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
611
611
|
[1m[35m (0.1ms)[0m begin transaction
|
612
|
-
[1m[36m (0.
|
613
|
-
[1m[35mSQL (0.
|
612
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
613
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.260846"], ["updated_at", "2016-03-29 13:58:21.260846"]]
|
614
614
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
615
|
-
[1m[35mSyncableModels::Sync Exists (0.
|
616
|
-
[1m[36m (0.
|
617
|
-
[1m[35mSQL (0.
|
615
|
+
[1m[35mSyncableModels::Sync Exists (0.0ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 1], ["subject_type", "Project"], ["destination", "test"]]
|
616
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
617
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Project"], ["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.264293"], ["updated_at", "2016-03-29 13:58:21.264293"]]
|
618
618
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
619
|
-
[1m[35m (0.
|
619
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
|
620
620
|
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
621
|
-
[1m[35m (0.
|
622
|
-
[1m[36m (0.
|
623
|
-
[1m[35mSQL (0.
|
621
|
+
[1m[35m (0.0ms)[0m begin transaction
|
622
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
623
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.267449"], ["updated_at", "2016-03-29 13:58:21.267449"]]
|
624
624
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
625
|
-
[1m[35mSyncableModels::Sync Exists (0.
|
626
|
-
[1m[36m (0.
|
627
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Project"], ["subject_external_id", "
|
625
|
+
[1m[35mSyncableModels::Sync Exists (0.0ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 1], ["subject_type", "Project"], ["destination", "test"]]
|
626
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
627
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Project"], ["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.270850"], ["updated_at", "2016-03-29 13:58:21.270850"]]
|
628
628
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
629
629
|
[1m[35mSyncableModels::Sync Load (0.2ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? ORDER BY "syncs"."id" ASC LIMIT 1 [["subject_id", 1], ["subject_type", "Project"]]
|
630
|
-
[1m[36m (0.
|
631
|
-
[1m[35m (0.
|
632
|
-
[1m[36m (0.
|
633
|
-
[1m[35mSQL (0.
|
630
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
631
|
+
[1m[35m (0.0ms)[0m begin transaction
|
632
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
633
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:21.274336"], ["updated_at", "2016-03-29 13:58:21.274336"]]
|
634
634
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
635
|
-
[1m[35mSyncableModels::Sync Exists (0.
|
635
|
+
[1m[35mSyncableModels::Sync Exists (0.0ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 1], ["subject_type", "Team"], ["destination", "test"]]
|
636
636
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
637
|
-
[1m[35mSQL (0.
|
638
|
-
[1m[36m (0.
|
637
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29 13:58:21.277417"], ["updated_at", "2016-03-29 13:58:21.277417"]]
|
638
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
639
639
|
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? ORDER BY "syncs"."id" ASC LIMIT 1 [["subject_id", 1], ["subject_type", "Team"]]
|
640
|
-
[1m[36m (0.
|
640
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
641
641
|
[1m[35m (0.1ms)[0m begin transaction
|
642
|
-
[1m[36m (0.
|
643
|
-
[1m[35mSQL (0.
|
644
|
-
[1m[36m (0.
|
645
|
-
[1m[35mSyncableModels::Sync Exists (0.
|
646
|
-
[1m[36m (0.
|
647
|
-
[1m[35mSQL (0.
|
648
|
-
[1m[36m (0.
|
642
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
643
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.280390"], ["updated_at", "2016-03-29 13:58:21.280390"]]
|
644
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
645
|
+
[1m[35mSyncableModels::Sync Exists (0.0ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 1], ["subject_type", "Project"], ["destination", "test"]]
|
646
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
647
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Project"], ["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.283051"], ["updated_at", "2016-03-29 13:58:21.283051"]]
|
648
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
649
649
|
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? ORDER BY "syncs"."id" ASC LIMIT 1 [["subject_id", 1], ["subject_type", "Project"]]
|
650
|
-
[1m[36m (0.
|
651
|
-
[1m[35m (0.
|
650
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
651
|
+
[1m[35m (0.0ms)[0m begin transaction
|
652
652
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
653
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "
|
654
|
-
[1m[36m (0.
|
653
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.285796"], ["updated_at", "2016-03-29 13:58:21.285796"]]
|
654
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
655
655
|
[1m[35mSyncableModels::Sync Exists (0.1ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 1], ["subject_type", "Project"], ["destination", "test"]]
|
656
656
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
657
|
-
[1m[35mSQL (0.
|
658
|
-
[1m[36m (0.
|
657
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Project"], ["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.289166"], ["updated_at", "2016-03-29 13:58:21.289166"]]
|
658
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
659
659
|
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? ORDER BY "syncs"."id" ASC LIMIT 1 [["subject_id", 1], ["subject_type", "Project"]]
|
660
|
-
[1m[36m (0.
|
661
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "syncs" SET "subject_id" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", nil], ["updated_at", "2016-03-29
|
660
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
661
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "syncs" SET "subject_id" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", nil], ["updated_at", "2016-03-29 13:58:21.291334"], ["id", 1]]
|
662
662
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
663
|
-
[1m[35m (0.
|
663
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
664
664
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
665
665
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
666
|
-
[1m[36mSQL (0.
|
667
|
-
[1m[35m (0.
|
668
|
-
[1m[36mSyncableModels::Sync Exists (0.
|
669
|
-
[1m[35m (0.
|
670
|
-
[1m[36mSQL (0.
|
671
|
-
[1m[35m (0.
|
666
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "First"], ["created_at", "2016-03-29 13:58:21.294146"], ["updated_at", "2016-03-29 13:58:21.294146"]]
|
667
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
668
|
+
[1m[36mSyncableModels::Sync Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 1], ["subject_type", "Team"], ["destination", "test"]]
|
669
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
670
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29 13:58:21.297468"], ["updated_at", "2016-03-29 13:58:21.297468"]]
|
671
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
672
672
|
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? ORDER BY "syncs"."id" ASC LIMIT 1[0m [["subject_id", 1], ["subject_type", "Team"]]
|
673
|
-
[1m[35m (0.
|
674
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = ?, "updated_at" = ? WHERE "syncs"."id" = ?[0m [["subject_id", nil], ["updated_at", "2016-03-29
|
675
|
-
[1m[35m (0.
|
676
|
-
[1m[36m (0.
|
673
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
674
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = ?, "updated_at" = ? WHERE "syncs"."id" = ?[0m [["subject_id", nil], ["updated_at", "2016-03-29 13:58:21.299622"], ["id", 1]]
|
675
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
676
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
677
677
|
[1m[35m (0.1ms)[0m begin transaction
|
678
678
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
679
|
-
[1m[35mSQL (0.
|
680
|
-
[1m[36m (0.
|
679
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.302244"], ["updated_at", "2016-03-29 13:58:21.302244"]]
|
680
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
681
681
|
[1m[35mSyncableModels::Sync Exists (0.1ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 1], ["subject_type", "Project"], ["destination", "test"]]
|
682
|
-
[1m[36m (0.
|
683
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Project"], ["subject_external_id", "
|
682
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
683
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Project"], ["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.305246"], ["updated_at", "2016-03-29 13:58:21.305246"]]
|
684
684
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
685
685
|
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? ORDER BY "syncs"."id" ASC LIMIT 1 [["subject_id", 1], ["subject_type", "Project"]]
|
686
686
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
687
687
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
|
688
|
-
[1m[36mProject Load (0.
|
689
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29
|
688
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
689
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 13:58:21.308144"], ["updated_at", "2016-03-29 13:58:21.308937"], ["id", 1]]
|
690
690
|
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 1], ["subject_type", "Project"]]
|
691
|
-
[1m[35mSQL (0.
|
692
|
-
[1m[36m (0.
|
693
|
-
[1m[35mSyncableModels::Sync Load (0.
|
694
|
-
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["uuid", "
|
695
|
-
[1m[35m (0.
|
696
|
-
[1m[36m (0.
|
697
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
698
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "First"], ["created_at", "2016-03-29 11:40:42.395805"], ["updated_at", "2016-03-29 11:40:42.395805"]]
|
699
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
700
|
-
[1m[36mSyncableModels::Sync Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 1], ["subject_type", "Team"], ["destination", "test"]]
|
691
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
692
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
693
|
+
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1 [["id", 1]]
|
694
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
695
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
696
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
701
697
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
702
|
-
[1m[36mSQL (0.
|
698
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "First"], ["created_at", "2016-03-29 13:58:21.314934"], ["updated_at", "2016-03-29 13:58:21.314934"]]
|
703
699
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
700
|
+
[1m[36mSyncableModels::Sync Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 1], ["subject_type", "Team"], ["destination", "test"]]
|
701
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
702
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29 13:58:21.318082"], ["updated_at", "2016-03-29 13:58:21.318082"]]
|
703
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
704
704
|
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? ORDER BY "syncs"."id" ASC LIMIT 1[0m [["subject_id", 1], ["subject_type", "Team"]]
|
705
705
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
706
706
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 1], ["subject_type", "Team"]]
|
@@ -708,112 +708,112 @@ Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 1.2ms)
|
|
708
708
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "1"]]
|
709
709
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
710
710
|
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1[0m [["id", 1]]
|
711
|
-
[1m[35m (0.
|
711
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
712
712
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
713
|
-
[1m[35m (0.
|
714
|
-
[1m[36mSQL (0.
|
713
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
714
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "First"], ["created_at", "2016-03-29 13:58:21.324224"], ["updated_at", "2016-03-29 13:58:21.324224"]]
|
715
715
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
716
|
-
[1m[36mSyncableModels::Sync Exists (0.
|
716
|
+
[1m[36mSyncableModels::Sync Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 1], ["subject_type", "Team"], ["destination", "test"]]
|
717
717
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
718
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29
|
718
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29 13:58:21.327533"], ["updated_at", "2016-03-29 13:58:21.327533"]]
|
719
719
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
720
720
|
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? ORDER BY "syncs"."id" ASC LIMIT 1[0m [["subject_id", 1], ["subject_type", "Team"]]
|
721
721
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
722
722
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 1], ["subject_type", "Team"]]
|
723
|
-
[1m[35mSQL (0.
|
723
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
|
724
724
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "1"]]
|
725
|
-
[1m[35m (0.
|
726
|
-
[1m[36mSyncableModels::Sync Load (0.
|
727
|
-
[1m[35m (0.
|
728
|
-
[1m[36m (0.
|
729
|
-
[1m[35m (0.
|
730
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "First"], ["created_at", "2016-03-29
|
731
|
-
[1m[35m (0.
|
732
|
-
[1m[36mSyncableModels::Sync Exists (0.
|
733
|
-
[1m[35m (0.
|
734
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29
|
725
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
726
|
+
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1[0m [["id", 1]]
|
727
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
728
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
729
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
730
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "First"], ["created_at", "2016-03-29 13:58:21.333345"], ["updated_at", "2016-03-29 13:58:21.333345"]]
|
731
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
732
|
+
[1m[36mSyncableModels::Sync Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 1], ["subject_type", "Team"], ["destination", "test"]]
|
733
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
734
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29 13:58:21.336487"], ["updated_at", "2016-03-29 13:58:21.336487"]]
|
735
735
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
736
736
|
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? ORDER BY "syncs"."id" ASC LIMIT 1[0m [["subject_id", 1], ["subject_type", "Team"]]
|
737
|
-
[1m[35m (0.
|
737
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
738
738
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 1], ["subject_type", "Team"]]
|
739
|
-
[1m[35mSQL (0.
|
739
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
|
740
740
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "1"]]
|
741
741
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
742
|
-
[1m[36mSyncableModels::Sync Load (0.
|
742
|
+
[1m[36mSyncableModels::Sync Load (0.0ms)[0m [1mSELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1[0m [["id", 1]]
|
743
743
|
[1m[35mTeam Load (0.0ms)[0m SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["id", 1]]
|
744
|
-
[1m[36m (0.
|
744
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
745
745
|
[1m[35m (0.0ms)[0m begin transaction
|
746
746
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
747
|
-
[1m[35mSQL (0.
|
748
|
-
[1m[36m (0.
|
749
|
-
[1m[35mSyncableModels::Sync Exists (0.
|
750
|
-
[1m[36m (0.
|
751
|
-
[1m[35mSQL (0.
|
747
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:21.342043"], ["updated_at", "2016-03-29 13:58:21.342043"]]
|
748
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
749
|
+
[1m[35mSyncableModels::Sync Exists (0.0ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 1], ["subject_type", "Team"], ["destination", "test"]]
|
750
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
751
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29 13:58:21.344689"], ["updated_at", "2016-03-29 13:58:21.344689"]]
|
752
752
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
753
753
|
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? ORDER BY "syncs"."id" ASC LIMIT 1 [["subject_id", 1], ["subject_type", "Team"]]
|
754
|
-
[1m[36m (0.
|
754
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
755
755
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
|
756
756
|
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "teams" WHERE "teams"."id" = ?[0m [["id", 1]]
|
757
757
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
|
758
|
-
[1m[36m (0.
|
759
|
-
[1m[35mSyncableModels::Sync Load (0.
|
758
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
759
|
+
[1m[35mSyncableModels::Sync Load (0.0ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1 [["id", 1]]
|
760
760
|
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
761
761
|
[1m[35m (0.1ms)[0m begin transaction
|
762
762
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
763
|
-
[1m[35mSQL (0.
|
763
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:21.350706"], ["updated_at", "2016-03-29 13:58:21.350706"]]
|
764
764
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
765
|
-
[1m[35mSyncableModels::Sync Exists (0.
|
766
|
-
[1m[36m (0.
|
767
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29
|
765
|
+
[1m[35mSyncableModels::Sync Exists (0.0ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 1], ["subject_type", "Team"], ["destination", "test"]]
|
766
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
767
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29 13:58:21.353921"], ["updated_at", "2016-03-29 13:58:21.353921"]]
|
768
768
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
769
|
-
[1m[35mSyncableModels::Sync Load (0.
|
770
|
-
[1m[36m (0.
|
769
|
+
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? ORDER BY "syncs"."id" ASC LIMIT 1 [["subject_id", 1], ["subject_type", "Team"]]
|
770
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
771
771
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
|
772
|
-
[1m[36mSQL (0.
|
772
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "teams" WHERE "teams"."id" = ?[0m [["id", 1]]
|
773
773
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
|
774
774
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
775
775
|
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1 [["id", 1]]
|
776
|
-
[1m[36m (0.
|
777
|
-
[1m[35m (0.
|
778
|
-
[1m[36m (0.
|
779
|
-
[1m[35mSQL (0.
|
780
|
-
[1m[36m (0.
|
776
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
777
|
+
[1m[35m (0.0ms)[0m begin transaction
|
778
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
779
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.365710"], ["updated_at", "2016-03-29 13:58:21.365710"]]
|
780
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
781
781
|
[1m[35mSyncableModels::Sync Exists (0.1ms)[0m SELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1 [["subject_id", 1], ["subject_type", "Project"], ["destination", "test"]]
|
782
782
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
783
|
-
[1m[35mSQL (0.
|
783
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["destination", "test"], ["subject_id", 1], ["subject_type", "Project"], ["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"], ["created_at", "2016-03-29 13:58:21.368874"], ["updated_at", "2016-03-29 13:58:21.368874"]]
|
784
784
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
785
|
-
[1m[35m (0.
|
785
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
786
786
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ?[0m [["subject_id", 1], ["subject_type", "Project"]]
|
787
|
-
[1m[35mProject Load (0.
|
788
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ?[0m [["deleted_at", "2016-03-29
|
787
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
788
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ?[0m [["deleted_at", "2016-03-29 13:58:21.370815"], ["updated_at", "2016-03-29 13:58:21.371721"], ["id", 1]]
|
789
789
|
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
|
790
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "
|
791
|
-
[1m[35m (0.
|
792
|
-
[1m[36mSyncableModels::Sync Load (0.
|
793
|
-
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "
|
794
|
-
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["uuid", "
|
790
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ?[0m [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
791
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
792
|
+
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" ORDER BY "syncs"."id" ASC LIMIT 1[0m
|
793
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
794
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1[0m [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
|
795
795
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
796
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ?[0m [["subject_id", 1], ["subject_destroyed", "f"], ["updated_at", "2016-03-29
|
796
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ?[0m [["subject_id", 1], ["subject_destroyed", "f"], ["updated_at", "2016-03-29 13:58:21.376929"], ["id", 1]]
|
797
797
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
798
|
-
[1m[36mSyncableModels::Sync Load (0.
|
798
|
+
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" ORDER BY "syncs"."id" ASC LIMIT 1[0m
|
799
799
|
[1m[35m (0.2ms)[0m rollback transaction
|
800
800
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
801
|
-
[1m[35m (0.
|
802
|
-
[1m[36mSQL (0.
|
803
|
-
[1m[35m (0.
|
804
|
-
[1m[36mSyncableModels::Sync Exists (0.
|
805
|
-
[1m[35m (0.
|
806
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29
|
807
|
-
[1m[35m (0.
|
808
|
-
[1m[36m (0.
|
801
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
802
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "First"], ["created_at", "2016-03-29 13:58:21.380783"], ["updated_at", "2016-03-29 13:58:21.380783"]]
|
803
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
804
|
+
[1m[36mSyncableModels::Sync Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? AND "syncs"."destination" = ? LIMIT 1[0m [["subject_id", 1], ["subject_type", "Team"], ["destination", "test"]]
|
805
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
806
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "syncs" ("destination", "subject_id", "subject_type", "subject_external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["destination", "test"], ["subject_id", 1], ["subject_type", "Team"], ["subject_external_id", "1"], ["created_at", "2016-03-29 13:58:21.383554"], ["updated_at", "2016-03-29 13:58:21.383554"]]
|
807
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
808
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
809
809
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
|
810
|
-
[1m[36mSQL (0.
|
810
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "teams" WHERE "teams"."id" = ?[0m [["id", 1]]
|
811
811
|
[1m[35mSQL (0.1ms)[0m UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
|
812
812
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
813
|
-
[1m[35mSyncableModels::Sync Load (0.
|
814
|
-
[1m[36mTeam Load (0.
|
815
|
-
[1m[35m (0.
|
813
|
+
[1m[35mSyncableModels::Sync Load (0.1ms)[0m SELECT "syncs".* FROM "syncs" ORDER BY "syncs"."id" ASC LIMIT 1
|
814
|
+
[1m[36mTeam Load (0.0ms)[0m [1mSELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1[0m [["id", 1]]
|
815
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
816
816
|
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "syncs" WHERE "syncs"."id" = ?[0m [["id", 1]]
|
817
|
-
[1m[35m (0.
|
817
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
818
818
|
[1m[36mSyncableModels::Sync Load (0.1ms)[0m [1mSELECT "syncs".* FROM "syncs" ORDER BY "syncs"."id" ASC LIMIT 1[0m
|
819
|
-
[1m[35m (0.
|
819
|
+
[1m[35m (0.2ms)[0m rollback transaction
|