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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmFjMzY5ODRkYmFmOGMwNzdiNWQ4YWFlOTNmZjQ0ZmJmYjg1YTk3MA==
4
+ Yjg1MzNhOGNkOWMzMzc0NDQ5N2JkMDQ3ZTM4ZDJlNmZlMWRlYTM2NA==
5
5
  data.tar.gz: !binary |-
6
- Mzk4OTVkM2EwNTFiYzI1M2ExYTgwMzMwMjgwOTcwZDFhMmE3MjZmMA==
6
+ YmNjMGI3N2JhODVkYWE1ZTA4ZWRiMTA2MDc0NjZiODNiNjM5ZGVjNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWQ4ODJiN2UyYjZkY2IzYTEzOWIwZjJkNmEwZTcwYzMxODk1NjQ4NzMzNGEx
10
- NmYzM2M1MzMwM2IxNmEwMDJjMGE1ZjNhOGMwZDVhMDRlYzkyNDEyOWQ2MWIx
11
- ZjQwOTgzNTJhMjU1MDU5YjI4MjNkZGY3YjQwNTBkNDY5MGFjZmQ=
9
+ ZjE3M2QxMTAzYzhkYzE5N2FhNmIyMTc1MzRmZjI1MTMxNDFiNzEwZjAwMWI0
10
+ MDE4YzVlNjVmOWI2OWFkMDRlYjdjYjhiZDEzNjk3ZmVmYmFjODAzZDM4MGVj
11
+ NmJjZTQyN2Y2M2I0NjUzMmViYzNhNTRhNmRiM2RlODE0ZjU4ZDA=
12
12
  data.tar.gz: !binary |-
13
- Y2I2OGNkNzNlMDExMTEyNGRkYWRlNzVmNjVkOTVmMGIwMDkxYjZiNzdiM2Mx
14
- YzI5ZWU1MzQ1ZDUzMzQ3OThjMmE1NDkyY2Y1MjgwYzY5NzdiZjAyMTg5Y2Q1
15
- MjRmYWJlYWRmN2FmOGM5Mjg2YzllODRhZjliNDU0Yjg0ZTk3MmY=
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
- id_key = args[:id_key] || :uuid
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
- id_key: id_key
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(external_id: id).first.try(:destroy)
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
@@ -1,3 +1,3 @@
1
1
  module SyncableModels
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
@@ -1,9 +1,9 @@
1
-  (4.9ms) CREATE 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) 
1
+  (3.5ms) CREATE 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) 
2
2
   (0.1ms) select sqlite_version(*)
3
-  (1.9ms) CREATE UNIQUE INDEX "index_projects_on_uuid" ON "projects" ("uuid")
4
-  (2.1ms) 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
-  (1.9ms) CREATE INDEX "index_syncs_on_destination" ON "syncs" ("destination")
6
-  (0.2ms) SELECT sql
3
+  (1.7ms) CREATE UNIQUE INDEX "index_projects_on_uuid" ON "projects" ("uuid")
4
+  (1.6ms) 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
+  (1.7ms) CREATE INDEX "index_syncs_on_destination" ON "syncs" ("destination")
6
+  (0.1ms) 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
-  (2.0ms) CREATE INDEX "index_syncs_on_subject_external_id_and_subject_destroyed" ON "syncs" ("subject_external_id", "subject_destroyed")
14
+  (1.6ms) CREATE INDEX "index_syncs_on_subject_external_id_and_subject_destroyed" ON "syncs" ("subject_external_id", "subject_destroyed")
15
15
   (0.1ms) 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
  
31
-  (2.3ms) CREATE INDEX "index_syncs_on_subject_id_and_subject_type_and_destination" ON "syncs" ("subject_id", "subject_type", "destination")
32
-  (1.8ms) CREATE 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) 
33
-  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
34
-  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
31
+  (1.5ms) CREATE INDEX "index_syncs_on_subject_id_and_subject_type_and_destination" ON "syncs" ("subject_id", "subject_type", "destination")
32
+  (1.6ms) CREATE 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) 
33
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
34
+  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
35
35
   (0.1ms) SELECT version FROM "schema_migrations"
36
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160327154807')
36
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160327154807')
37
37
   (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160327104327')
38
-  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160327111225')
38
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160327111225')
39
39
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
40
40
   (0.2ms) begin transaction
41
41
   (0.1ms) SAVEPOINT active_record_1
42
- SQL (0.5ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:41.694553"], ["updated_at", "2016-03-29 11:40:41.694553"]]
42
+ SQL (0.3ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
44
-  (0.1ms) SAVEPOINT active_record_1
45
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 11:40:41.701632"], ["updated_at", "2016-03-29 11:40:41.701632"]]
44
+  (0.0ms) SAVEPOINT active_record_1
45
+ SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 13:58:20.872119"], ["updated_at", "2016-03-29 13:58:20.872119"]]
46
46
   (0.1ms) RELEASE SAVEPOINT active_record_1
47
-  (0.1ms) SAVEPOINT active_record_1
48
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 11:40:41.704131"], ["updated_at", "2016-03-29 11:40:41.704131"]]
49
-  (0.1ms) RELEASE SAVEPOINT active_record_1
50
-  (0.1ms) SAVEPOINT active_record_1
51
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "fourth"], ["created_at", "2016-03-29 11:40:41.706503"], ["updated_at", "2016-03-29 11:40:41.706503"]]
47
+  (0.0ms) SAVEPOINT active_record_1
48
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50
+  (0.0ms) SAVEPOINT active_record_1
51
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "fourth"], ["created_at", "2016-03-29 13:58:20.875376"], ["updated_at", "2016-03-29 13:58:20.875376"]]
52
52
   (0.1ms) RELEASE SAVEPOINT active_record_1
53
53
  Processing by ImportApiController#teams as HTML
54
54
  Parameters: {"destination"=>"test"}
55
-  (0.2ms) SELECT "syncs"."subject_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_type" = ? [["subject_type", "Team"]]
56
- Team Load (0.2ms) SELECT "teams".* FROM "teams" WHERE (1=1) LIMIT 50
57
- SyncableModels::Sync Load (0.2ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? LIMIT 46 [["subject_destroyed", "t"]]
58
- Completed 200 OK in 13ms (Views: 1.2ms | ActiveRecord: 0.7ms)
59
-  (0.2ms) rollback transaction
60
-  (0.1ms) begin transaction
61
-  (0.1ms) SAVEPOINT active_record_1
62
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:41.730160"], ["updated_at", "2016-03-29 11:40:41.730160"]]
55
+  (0.1ms) SELECT "syncs"."subject_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_type" = ? [["subject_type", "Team"]]
56
+ Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE (1=1) LIMIT 50
57
+ SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? LIMIT 46 [["subject_destroyed", "t"]]
58
+ Completed 200 OK in 9ms (Views: 0.8ms | ActiveRecord: 0.5ms)
59
+  (0.1ms) rollback transaction
60
+  (0.0ms) begin transaction
61
+  (0.0ms) SAVEPOINT active_record_1
62
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:20.891750"], ["updated_at", "2016-03-29 13:58:20.891750"]]
63
63
   (0.1ms) RELEASE SAVEPOINT active_record_1
64
-  (0.1ms) SAVEPOINT active_record_1
65
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 11:40:41.732835"], ["updated_at", "2016-03-29 11:40:41.732835"]]
66
-  (0.1ms) RELEASE SAVEPOINT active_record_1
67
-  (0.1ms) SAVEPOINT active_record_1
68
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 11:40:41.735173"], ["updated_at", "2016-03-29 11:40:41.735173"]]
64
+  (0.0ms) SAVEPOINT active_record_1
65
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67
+  (0.0ms) SAVEPOINT active_record_1
68
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 13:58:20.894727"], ["updated_at", "2016-03-29 13:58:20.894727"]]
69
69
   (0.1ms) RELEASE SAVEPOINT active_record_1
70
70
   (0.1ms) SAVEPOINT active_record_1
71
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "fourth"], ["created_at", "2016-03-29 11:40:41.737345"], ["updated_at", "2016-03-29 11:40:41.737345"]]
71
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
73
73
  SyncableModels::Sync Exists (0.2ms) 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
   (0.1ms) SAVEPOINT active_record_1
75
- SQL (0.3ms) 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 11:40:41.777564"], ["updated_at", "2016-03-29 11:40:41.777564"]]
75
+ SQL (0.2ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
77
77
  Processing by ImportApiController#teams as HTML
78
78
  Parameters: {"destination"=>"test"}
79
79
   (0.1ms) SELECT "syncs"."subject_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_type" = ? [["subject_type", "Team"]]
80
- Team Load (0.2ms) SELECT "teams".* FROM "teams" WHERE ("teams"."id" != 4) LIMIT 50
81
- SyncableModels::Sync Load (0.2ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? LIMIT 47 [["subject_destroyed", "t"]]
82
- Completed 200 OK in 6ms (Views: 0.9ms | ActiveRecord: 0.5ms)
80
+ Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE ("teams"."id" != 4) LIMIT 50
81
+ SyncableModels::Sync Load (0.1ms) 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
   (0.2ms) rollback transaction
84
-  (0.1ms) begin transaction
84
+  (0.0ms) begin transaction
85
85
   (0.1ms) SAVEPOINT active_record_1
86
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:41.790486"], ["updated_at", "2016-03-29 11:40:41.790486"]]
86
+ SQL (0.2ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
88
-  (0.1ms) SAVEPOINT active_record_1
89
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 11:40:41.793058"], ["updated_at", "2016-03-29 11:40:41.793058"]]
90
-  (0.1ms) RELEASE SAVEPOINT active_record_1
91
-  (0.1ms) SAVEPOINT active_record_1
92
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 11:40:41.795352"], ["updated_at", "2016-03-29 11:40:41.795352"]]
88
+  (0.0ms) SAVEPOINT active_record_1
89
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 13:58:20.937969"], ["updated_at", "2016-03-29 13:58:20.937969"]]
90
+  (0.0ms) RELEASE SAVEPOINT active_record_1
91
+  (0.0ms) SAVEPOINT active_record_1
92
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
94
-  (0.1ms) SAVEPOINT active_record_1
95
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "fourth"], ["created_at", "2016-03-29 11:40:41.797692"], ["updated_at", "2016-03-29 11:40:41.797692"]]
96
-  (0.1ms) RELEASE SAVEPOINT active_record_1
94
+  (0.0ms) SAVEPOINT active_record_1
95
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "fourth"], ["created_at", "2016-03-29 13:58:20.940960"], ["updated_at", "2016-03-29 13:58:20.940960"]]
96
+  (0.0ms) RELEASE SAVEPOINT active_record_1
97
97
  SyncableModels::Sync Exists (0.1ms) 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"]]
98
-  (0.1ms) SAVEPOINT active_record_1
99
- SQL (0.2ms) 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 11:40:41.802569"], ["updated_at", "2016-03-29 11:40:41.802569"]]
100
-  (0.1ms) RELEASE SAVEPOINT active_record_1
101
- SyncableModels::Sync Exists (0.1ms) 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"]]
102
-  (0.1ms) SAVEPOINT active_record_1
103
- SQL (0.2ms) 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 11:40:41.807508"], ["updated_at", "2016-03-29 11:40:41.807508"]]
104
-  (0.1ms) RELEASE SAVEPOINT active_record_1
105
-  (0.1ms) SAVEPOINT active_record_1
98
+  (0.0ms) SAVEPOINT active_record_1
99
+ SQL (0.1ms) 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.944155"], ["updated_at", "2016-03-29 13:58:20.944155"]]
100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
101
+ SyncableModels::Sync Exists (0.0ms) 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"]]
102
+  (0.0ms) SAVEPOINT active_record_1
103
+ SQL (0.1ms) 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.947231"], ["updated_at", "2016-03-29 13:58:20.947231"]]
104
+  (0.0ms) RELEASE SAVEPOINT active_record_1
105
+  (0.0ms) SAVEPOINT active_record_1
106
106
  SQL (0.2ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 3], ["subject_type", "Team"]]
107
107
  SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 3]]
108
- SQL (0.2ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "3"]]
108
+ SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "3"]]
109
109
   (0.1ms) RELEASE SAVEPOINT active_record_1
110
110
   (0.1ms) SAVEPOINT active_record_1
111
111
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 4], ["subject_type", "Team"]]
112
- SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 4]]
112
+ SQL (0.0ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 4]]
113
113
  SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "4"]]
114
-  (0.1ms) RELEASE SAVEPOINT active_record_1
114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
115
115
  Processing by ImportApiController#teams as HTML
116
116
  Parameters: {"destination"=>"test"}
117
117
   (0.1ms) SELECT "syncs"."subject_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_type" = ? [["subject_type", "Team"]]
118
- Team Load (0.2ms) SELECT "teams".* FROM "teams" WHERE ("teams"."id" IS NOT NULL) LIMIT 50
119
- SyncableModels::Sync Load (0.3ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? LIMIT 48 [["subject_destroyed", "t"]]
120
- Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.6ms)
121
-  (0.3ms) rollback transaction
118
+ Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE ("teams"."id" IS NOT NULL) LIMIT 50
119
+ SyncableModels::Sync Load (0.2ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? LIMIT 48 [["subject_destroyed", "t"]]
120
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
121
+  (0.1ms) rollback transaction
122
122
   (0.1ms) begin transaction
123
123
   (0.1ms) SAVEPOINT active_record_1
124
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:41.825210"], ["updated_at", "2016-03-29 11:40:41.825210"]]
125
-  (0.1ms) RELEASE SAVEPOINT active_record_1
126
-  (0.1ms) SAVEPOINT active_record_1
127
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 11:40:41.828221"], ["updated_at", "2016-03-29 11:40:41.828221"]]
124
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:20.958904"], ["updated_at", "2016-03-29 13:58:20.958904"]]
125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
126
+  (0.0ms) SAVEPOINT active_record_1
127
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
129
-  (0.1ms) SAVEPOINT active_record_1
130
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 11:40:41.830906"], ["updated_at", "2016-03-29 11:40:41.830906"]]
131
-  (0.1ms) RELEASE SAVEPOINT active_record_1
132
-  (0.1ms) SAVEPOINT active_record_1
133
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "fourth"], ["created_at", "2016-03-29 11:40:41.833368"], ["updated_at", "2016-03-29 11:40:41.833368"]]
129
+  (0.0ms) SAVEPOINT active_record_1
130
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 13:58:20.962156"], ["updated_at", "2016-03-29 13:58:20.962156"]]
131
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132
+  (0.0ms) SAVEPOINT active_record_1
133
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
135
- SyncableModels::Sync Exists (0.1ms) 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"]]
135
+ SyncableModels::Sync Exists (0.0ms) 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
   (0.1ms) SAVEPOINT active_record_1
137
- SQL (0.2ms) 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 11:40:41.838721"], ["updated_at", "2016-03-29 11:40:41.838721"]]
137
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
139
- SyncableModels::Sync Exists (0.2ms) 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"]]
139
+ SyncableModels::Sync Exists (0.0ms) 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
   (0.1ms) SAVEPOINT active_record_1
141
- SQL (0.2ms) 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 11:40:41.857268"], ["updated_at", "2016-03-29 11:40:41.857268"]]
141
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
143
143
   (0.1ms) SAVEPOINT active_record_1
144
144
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 3], ["subject_type", "Team"]]
145
- SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 3]]
145
+ SQL (0.0ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 3]]
146
146
  SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "3"]]
147
147
   (0.1ms) RELEASE SAVEPOINT active_record_1
148
-  (0.1ms) SAVEPOINT active_record_1
148
+  (0.0ms) SAVEPOINT active_record_1
149
149
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 4], ["subject_type", "Team"]]
150
- SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 4]]
150
+ SQL (0.0ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 4]]
151
151
  SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "4"]]
152
-  (0.1ms) RELEASE SAVEPOINT active_record_1
152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
153
153
  Processing by ImportApiController#teams as HTML
154
154
  Parameters: {"destination"=>"test"}
155
-  (0.1ms) SELECT "syncs"."subject_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_type" = ? [["subject_type", "Team"]]
156
- Team Load (0.2ms) SELECT "teams".* FROM "teams" WHERE ("teams"."id" IS NOT NULL) LIMIT 50
155
+  (0.0ms) SELECT "syncs"."subject_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_type" = ? [["subject_type", "Team"]]
156
+ Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE ("teams"."id" IS NOT NULL) LIMIT 50
157
157
  SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? LIMIT 48 [["subject_destroyed", "t"]]
158
- Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms)
159
-  (0.3ms) rollback transaction
160
-  (0.2ms) begin transaction
161
-  (0.1ms) SAVEPOINT active_record_1
162
- SQL (0.2ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
164
-  (0.1ms) SAVEPOINT active_record_1
165
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 11:40:41.875156"], ["updated_at", "2016-03-29 11:40:41.875156"]]
166
-  (0.1ms) RELEASE SAVEPOINT active_record_1
158
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
159
+  (0.2ms) rollback transaction
160
+  (0.0ms) begin transaction
167
161
   (0.1ms) SAVEPOINT active_record_1
168
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 11:40:41.876966"], ["updated_at", "2016-03-29 11:40:41.876966"]]
169
-  (0.1ms) RELEASE SAVEPOINT active_record_1
170
-  (0.1ms) SAVEPOINT active_record_1
171
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "fourth"], ["created_at", "2016-03-29 11:40:41.879120"], ["updated_at", "2016-03-29 11:40:41.879120"]]
172
-  (0.1ms) RELEASE SAVEPOINT active_record_1
173
- SyncableModels::Sync Exists (0.1ms) 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"]]
162
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
164
+  (0.0ms) SAVEPOINT active_record_1
165
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 13:58:20.982816"], ["updated_at", "2016-03-29 13:58:20.982816"]]
166
+  (0.0ms) RELEASE SAVEPOINT active_record_1
167
+  (0.0ms) SAVEPOINT active_record_1
168
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
170
+  (0.0ms) SAVEPOINT active_record_1
171
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "fourth"], ["created_at", "2016-03-29 13:58:20.985560"], ["updated_at", "2016-03-29 13:58:20.985560"]]
172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
173
+ SyncableModels::Sync Exists (0.0ms) 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"]]
174
174
   (0.1ms) SAVEPOINT active_record_1
175
- SQL (0.2ms) 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 11:40:41.883863"], ["updated_at", "2016-03-29 11:40:41.883863"]]
175
+ SQL (0.1ms) 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.988720"], ["updated_at", "2016-03-29 13:58:20.988720"]]
176
176
   (0.1ms) RELEASE SAVEPOINT active_record_1
177
177
  SyncableModels::Sync Exists (0.1ms) 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"]]
178
-  (0.1ms) SAVEPOINT active_record_1
179
- SQL (0.1ms) 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 11:40:41.888545"], ["updated_at", "2016-03-29 11:40:41.888545"]]
180
-  (0.1ms) RELEASE SAVEPOINT active_record_1
178
+  (0.0ms) SAVEPOINT active_record_1
179
+ SQL (0.1ms) 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.992053"], ["updated_at", "2016-03-29 13:58:20.992053"]]
180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
181
181
   (0.1ms) SAVEPOINT active_record_1
182
182
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 3], ["subject_type", "Team"]]
183
183
  SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 3]]
@@ -187,38 +187,38 @@ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms)
187
187
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 4], ["subject_type", "Team"]]
188
188
  SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 4]]
189
189
  SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "4"]]
190
-  (0.1ms) RELEASE SAVEPOINT active_record_1
190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
191
191
  Processing by ImportApiController#teams as HTML
192
192
  Parameters: {"destination"=>"test", "count"=>"3"}
193
193
   (0.1ms) SELECT "syncs"."subject_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_type" = ? [["subject_type", "Team"]]
194
194
  Team Load (0.2ms) SELECT "teams".* FROM "teams" WHERE ("teams"."id" IS NOT NULL) LIMIT 3
195
- SyncableModels::Sync Load (0.2ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? LIMIT 1 [["subject_destroyed", "t"]]
196
- Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.4ms)
197
-  (0.2ms) rollback transaction
198
-  (0.1ms) begin transaction
199
-  (0.1ms) SAVEPOINT active_record_1
200
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:41.903365"], ["updated_at", "2016-03-29 11:40:41.903365"]]
195
+ SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? LIMIT 1 [["subject_destroyed", "t"]]
196
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
197
+  (0.1ms) rollback transaction
198
+  (0.0ms) begin transaction
199
+  (0.0ms) SAVEPOINT active_record_1
200
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:21.003505"], ["updated_at", "2016-03-29 13:58:21.003505"]]
201
201
   (0.1ms) RELEASE SAVEPOINT active_record_1
202
-  (0.1ms) SAVEPOINT active_record_1
203
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 11:40:41.905453"], ["updated_at", "2016-03-29 11:40:41.905453"]]
202
+  (0.0ms) SAVEPOINT active_record_1
203
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
205
-  (0.1ms) SAVEPOINT active_record_1
206
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 11:40:41.907582"], ["updated_at", "2016-03-29 11:40:41.907582"]]
205
+  (0.0ms) SAVEPOINT active_record_1
206
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 13:58:21.006706"], ["updated_at", "2016-03-29 13:58:21.006706"]]
207
207
   (0.1ms) RELEASE SAVEPOINT active_record_1
208
-  (0.1ms) SAVEPOINT active_record_1
209
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "fourth"], ["created_at", "2016-03-29 11:40:41.909695"], ["updated_at", "2016-03-29 11:40:41.909695"]]
210
-  (0.1ms) RELEASE SAVEPOINT active_record_1
208
+  (0.0ms) SAVEPOINT active_record_1
209
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
211
211
  SyncableModels::Sync Exists (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
213
- SQL (0.2ms) 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 11:40:41.914604"], ["updated_at", "2016-03-29 11:40:41.914604"]]
214
-  (0.1ms) RELEASE SAVEPOINT active_record_1
212
+  (0.0ms) SAVEPOINT active_record_1
213
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
215
215
  SyncableModels::Sync Exists (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
217
- SQL (0.2ms) 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 11:40:41.919513"], ["updated_at", "2016-03-29 11:40:41.919513"]]
216
+  (0.0ms) SAVEPOINT active_record_1
217
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
219
-  (0.1ms) SAVEPOINT active_record_1
219
+  (0.0ms) SAVEPOINT active_record_1
220
220
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 3], ["subject_type", "Team"]]
221
- SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 3]]
221
+ SQL (0.0ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 3]]
222
222
  SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "3"]]
223
223
   (0.1ms) RELEASE SAVEPOINT active_record_1
224
224
   (0.1ms) SAVEPOINT active_record_1
@@ -228,64 +228,64 @@ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.4ms)
228
228
   (0.1ms) RELEASE SAVEPOINT active_record_1
229
229
  Processing by ImportApiController#teams as HTML
230
230
  Parameters: {"destination"=>"test", "count"=>"3"}
231
-  (0.1ms) SELECT "syncs"."subject_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_type" = ? [["subject_type", "Team"]]
231
+  (0.0ms) SELECT "syncs"."subject_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_type" = ? [["subject_type", "Team"]]
232
232
  Team Load (0.2ms) SELECT "teams".* FROM "teams" WHERE ("teams"."id" IS NOT NULL) LIMIT 3
233
233
  SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? LIMIT 1 [["subject_destroyed", "t"]]
234
- Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.3ms)
235
-  (0.3ms) rollback transaction
234
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
235
+  (0.1ms) rollback transaction
236
236
   (0.1ms) begin transaction
237
237
   (0.1ms) SAVEPOINT active_record_1
238
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:41.935633"], ["updated_at", "2016-03-29 11:40:41.935633"]]
239
-  (0.1ms) RELEASE SAVEPOINT active_record_1
240
-  (0.1ms) SAVEPOINT active_record_1
241
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 11:40:41.938112"], ["updated_at", "2016-03-29 11:40:41.938112"]]
242
-  (0.1ms) RELEASE SAVEPOINT active_record_1
238
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240
+  (0.0ms) SAVEPOINT active_record_1
241
+ SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 13:58:21.027373"], ["updated_at", "2016-03-29 13:58:21.027373"]]
242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
243
243
   (0.1ms) SAVEPOINT active_record_1
244
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 11:40:41.940412"], ["updated_at", "2016-03-29 11:40:41.940412"]]
244
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
246
246
  Processing by ImportApiController#sync_teams as HTML
247
247
  Parameters: {"destination"=>"test", "ids"=>["1", "2"]}
248
248
   (0.2ms) 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
- SyncableModels::Sync Load (0.2ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('1', '2') [["subject_destroyed", "t"]]
250
- Team Load (0.2ms) SELECT "teams".* FROM "teams" WHERE "teams"."id" IN (1, 2)
249
+ SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('1', '2') [["subject_destroyed", "t"]]
250
+ Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."id" IN (1, 2)
251
251
  SyncableModels::Sync Exists (0.1ms) 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"]]
252
252
   (0.1ms) SAVEPOINT active_record_1
253
- SQL (0.2ms) 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 11:40:41.949833"], ["updated_at", "2016-03-29 11:40:41.949833"]]
253
+ SQL (0.1ms) 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.035852"], ["updated_at", "2016-03-29 13:58:21.035852"]]
254
254
   (0.1ms) RELEASE SAVEPOINT active_record_1
255
- SyncableModels::Sync Exists (0.1ms) 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"]]
255
+ SyncableModels::Sync Exists (0.0ms) 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"]]
256
256
   (0.1ms) SAVEPOINT active_record_1
257
- SQL (0.1ms) 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 11:40:41.954181"], ["updated_at", "2016-03-29 11:40:41.954181"]]
257
+ SQL (0.1ms) 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.038598"], ["updated_at", "2016-03-29 13:58:21.038598"]]
258
258
   (0.1ms) RELEASE SAVEPOINT active_record_1
259
- Completed 200 OK in 13ms (Views: 0.2ms | ActiveRecord: 1.2ms)
259
+ Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 1.0ms)
260
260
  Team Load (0.2ms) SELECT "teams".* FROM "teams" INNER JOIN "syncs" ON "syncs"."subject_id" = "teams"."id" AND "syncs"."subject_type" = ? WHERE "syncs"."destination" = ? [["subject_type", "Team"], ["destination", "test"]]
261
261
   (0.2ms) rollback transaction
262
-  (0.1ms) begin transaction
263
-  (0.1ms) SAVEPOINT active_record_1
264
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:41.963377"], ["updated_at", "2016-03-29 11:40:41.963377"]]
265
-  (0.1ms) RELEASE SAVEPOINT active_record_1
266
-  (0.1ms) SAVEPOINT active_record_1
267
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 11:40:41.965835"], ["updated_at", "2016-03-29 11:40:41.965835"]]
262
+  (0.0ms) begin transaction
263
+  (0.0ms) SAVEPOINT active_record_1
264
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:21.045410"], ["updated_at", "2016-03-29 13:58:21.045410"]]
265
+  (0.0ms) RELEASE SAVEPOINT active_record_1
266
+  (0.0ms) SAVEPOINT active_record_1
267
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
269
269
   (0.1ms) SAVEPOINT active_record_1
270
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 11:40:41.968103"], ["updated_at", "2016-03-29 11:40:41.968103"]]
270
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 13:58:21.048970"], ["updated_at", "2016-03-29 13:58:21.048970"]]
271
271
   (0.1ms) RELEASE SAVEPOINT active_record_1
272
272
  SyncableModels::Sync Exists (0.1ms) 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"]]
273
273
   (0.1ms) SAVEPOINT active_record_1
274
- SQL (0.1ms) 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 11:40:41.972720"], ["updated_at", "2016-03-29 11:40:41.972720"]]
275
-  (0.1ms) RELEASE SAVEPOINT active_record_1
276
- SyncableModels::Sync Exists (0.1ms) 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"]]
277
-  (0.1ms) SAVEPOINT active_record_1
278
- SQL (0.1ms) 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 11:40:41.977109"], ["updated_at", "2016-03-29 11:40:41.977109"]]
274
+ SQL (0.1ms) 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.052690"], ["updated_at", "2016-03-29 13:58:21.052690"]]
279
275
   (0.1ms) RELEASE SAVEPOINT active_record_1
276
+ SyncableModels::Sync Exists (0.0ms) 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"]]
277
+  (0.0ms) SAVEPOINT active_record_1
278
+ SQL (0.1ms) 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.055820"], ["updated_at", "2016-03-29 13:58:21.055820"]]
279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
280
280
  SyncableModels::Sync Exists (0.1ms) 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"]]
281
281
   (0.1ms) SAVEPOINT active_record_1
282
- SQL (0.1ms) 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 11:40:41.981547"], ["updated_at", "2016-03-29 11:40:41.981547"]]
283
-  (0.1ms) RELEASE SAVEPOINT active_record_1
282
+ SQL (0.1ms) 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.058779"], ["updated_at", "2016-03-29 13:58:21.058779"]]
283
+  (0.0ms) RELEASE SAVEPOINT active_record_1
284
284
   (0.1ms) SAVEPOINT active_record_1
285
285
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
286
286
  SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
287
287
  SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
288
-  (0.1ms) RELEASE SAVEPOINT active_record_1
288
+  (0.0ms) RELEASE SAVEPOINT active_record_1
289
289
   (0.1ms) SAVEPOINT active_record_1
290
290
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 2], ["subject_type", "Team"]]
291
291
  SQL (0.1ms) 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
   (0.1ms) 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"]]
297
- SyncableModels::Sync Load (0.2ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('1', '2') [["subject_destroyed", "t"]]
297
+ SyncableModels::Sync Load (0.1ms) 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
  Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["id", 1]]
299
299
   (0.1ms) SAVEPOINT active_record_1
300
300
  SQL (0.1ms) DELETE FROM "syncs" WHERE "syncs"."id" = ? [["id", 1]]
301
301
   (0.1ms) RELEASE SAVEPOINT active_record_1
302
- Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["id", 2]]
302
+ Team Load (0.0ms) SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["id", 2]]
303
303
   (0.1ms) SAVEPOINT active_record_1
304
304
  SQL (0.1ms) DELETE FROM "syncs" WHERE "syncs"."id" = ? [["id", 2]]
305
305
   (0.1ms) RELEASE SAVEPOINT active_record_1
306
306
  Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE 1=0
307
- Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.1ms)
307
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
308
308
   (0.1ms) SELECT COUNT(*) FROM "syncs"
309
309
   (0.2ms) rollback transaction
310
310
   (0.1ms) begin transaction
311
-  (0.1ms) SAVEPOINT active_record_1
312
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:42.000994"], ["updated_at", "2016-03-29 11:40:42.000994"]]
313
-  (0.1ms) RELEASE SAVEPOINT active_record_1
311
+  (0.0ms) SAVEPOINT active_record_1
312
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
314
314
   (0.1ms) SAVEPOINT active_record_1
315
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 11:40:42.003471"], ["updated_at", "2016-03-29 11:40:42.003471"]]
315
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Second"], ["created_at", "2016-03-29 13:58:21.074976"], ["updated_at", "2016-03-29 13:58:21.074976"]]
316
316
   (0.1ms) RELEASE SAVEPOINT active_record_1
317
317
   (0.1ms) SAVEPOINT active_record_1
318
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Third"], ["created_at", "2016-03-29 11:40:42.005592"], ["updated_at", "2016-03-29 11:40:42.005592"]]
319
-  (0.1ms) RELEASE SAVEPOINT active_record_1
320
- SyncableModels::Sync Exists (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
322
- SQL (0.2ms) 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 11:40:42.010051"], ["updated_at", "2016-03-29 11:40:42.010051"]]
318
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
320
+ SyncableModels::Sync Exists (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
322
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
324
324
  SyncableModels::Sync Exists (0.1ms) 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
   (0.1ms) SAVEPOINT active_record_1
326
- SQL (0.2ms) 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 11:40:42.014459"], ["updated_at", "2016-03-29 11:40:42.014459"]]
326
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
328
328
  SyncableModels::Sync Exists (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
330
- SQL (0.1ms) 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 11:40:42.018812"], ["updated_at", "2016-03-29 11:40:42.018812"]]
329
+  (0.0ms) SAVEPOINT active_record_1
330
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
332
-  (0.1ms) SAVEPOINT active_record_1
333
- SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
332
+  (0.0ms) SAVEPOINT active_record_1
333
+ SQL (7.7ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
334
334
  SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
335
335
  SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
336
336
   (0.1ms) RELEASE SAVEPOINT active_record_1
@@ -338,369 +338,369 @@ Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.1ms)
338
338
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 2], ["subject_type", "Team"]]
339
339
  SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 2]]
340
340
  SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "2"]]
341
-  (0.1ms) RELEASE SAVEPOINT active_record_1
341
+  (0.0ms) RELEASE SAVEPOINT active_record_1
342
342
  Processing by ImportApiController#sync_teams as HTML
343
343
  Parameters: {"destination"=>"test", "ids"=>["1", "2"]}
344
344
   (0.1ms) 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
  SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('1', '2') [["subject_destroyed", "t"]]
346
- Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["id", 1]]
346
+ Team Load (0.0ms) SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["id", 1]]
347
347
   (0.1ms) SAVEPOINT active_record_1
348
348
  SQL (0.1ms) DELETE FROM "syncs" WHERE "syncs"."id" = ? [["id", 1]]
349
-  (0.1ms) RELEASE SAVEPOINT active_record_1
350
- Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["id", 2]]
351
-  (0.1ms) SAVEPOINT active_record_1
349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
350
+ Team Load (0.0ms) SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["id", 2]]
351
+  (0.0ms) SAVEPOINT active_record_1
352
352
  SQL (0.1ms) DELETE FROM "syncs" WHERE "syncs"."id" = ? [["id", 2]]
353
353
   (0.1ms) RELEASE SAVEPOINT active_record_1
354
354
  Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE 1=0
355
- Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.0ms)
355
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
356
356
  SyncableModels::Sync Load (0.2ms) SELECT "syncs".* FROM "syncs" ORDER BY "syncs"."id" ASC LIMIT 1
357
- Team Load (0.2ms) SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? LIMIT 1 [["id", 3]]
358
-  (0.3ms) rollback transaction
359
-  (0.1ms) begin transaction
357
+ Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? LIMIT 1 [["id", 3]]
358
+  (0.2ms) rollback transaction
359
+  (0.0ms) begin transaction
360
360
   (0.1ms) SAVEPOINT active_record_1
361
- SQL (0.3ms) INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"], ["created_at", "2016-03-29 11:40:42.050183"], ["updated_at", "2016-03-29 11:40:42.050183"]]
362
-  (0.1ms) RELEASE SAVEPOINT active_record_1
363
-  (0.1ms) SAVEPOINT active_record_1
364
- SQL (0.2ms) INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Second"], ["uuid", "2de238ae-c9bf-4aa3-b410-799f11ffcde2"], ["created_at", "2016-03-29 11:40:42.053448"], ["updated_at", "2016-03-29 11:40:42.053448"]]
361
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
363
+  (0.0ms) SAVEPOINT active_record_1
364
+ SQL (0.1ms) INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
   (0.1ms) RELEASE SAVEPOINT active_record_1
366
-  (0.1ms) SAVEPOINT active_record_1
367
- SQL (0.1ms) INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Third"], ["uuid", "be042852-2e63-44b4-9f8d-0caeaa976e5a"], ["created_at", "2016-03-29 11:40:42.056009"], ["updated_at", "2016-03-29 11:40:42.056009"]]
368
-  (0.1ms) RELEASE SAVEPOINT active_record_1
369
- SyncableModels::Sync Exists (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
371
- SQL (0.2ms) 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.061816"], ["updated_at", "2016-03-29 11:40:42.061816"]]
372
-  (0.1ms) RELEASE SAVEPOINT active_record_1
366
+  (0.0ms) SAVEPOINT active_record_1
367
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
369
+ SyncableModels::Sync Exists (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
371
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
373
373
  SyncableModels::Sync Exists (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
375
- SQL (0.2ms) 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", "2de238ae-c9bf-4aa3-b410-799f11ffcde2"], ["created_at", "2016-03-29 11:40:42.066446"], ["updated_at", "2016-03-29 11:40:42.066446"]]
376
-  (0.1ms) RELEASE SAVEPOINT active_record_1
374
+  (0.0ms) SAVEPOINT active_record_1
375
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
377
377
  SyncableModels::Sync Exists (0.1ms) 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
   (0.1ms) SAVEPOINT active_record_1
379
- SQL (0.1ms) 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", "be042852-2e63-44b4-9f8d-0caeaa976e5a"], ["created_at", "2016-03-29 11:40:42.071061"], ["updated_at", "2016-03-29 11:40:42.071061"]]
380
-  (0.1ms) RELEASE SAVEPOINT active_record_1
379
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
381
381
   (0.1ms) SAVEPOINT active_record_1
382
382
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
383
383
  Project Load (0.2ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
384
- SQL (0.2ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 11:40:42.074091"], ["updated_at", "2016-03-29 11:40:42.075685"], ["id", 1]]
385
- SyncableModels::Sync Load (0.2ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
386
- SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
387
-  (0.1ms) RELEASE SAVEPOINT active_record_1
388
-  (0.1ms) SAVEPOINT active_record_1
384
+ SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 13:58:21.131155"], ["updated_at", "2016-03-29 13:58:21.132343"], ["id", 1]]
385
+ SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
386
+ SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
388
+  (0.0ms) SAVEPOINT active_record_1
389
389
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 2], ["subject_type", "Project"]]
390
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
391
- SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 11:40:42.081345"], ["updated_at", "2016-03-29 11:40:42.082513"], ["id", 2]]
392
- SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 2], ["subject_type", "Project"]]
393
- SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "2de238ae-c9bf-4aa3-b410-799f11ffcde2"]]
394
-  (0.1ms) RELEASE SAVEPOINT active_record_1
390
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
391
+ SQL (0.1ms) 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
+ SyncableModels::Sync Load (0.0ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 2], ["subject_type", "Project"]]
393
+ SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]]
394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
395
395
  Processing by ImportApiController#sync_projects as HTML
396
- Parameters: {"destination"=>"test", "ids"=>["885e9172-f063-40aa-84d4-e09530b62dc9", "2de238ae-c9bf-4aa3-b410-799f11ffcde2"]}
397
-  (0.2ms) SELECT "syncs"."subject_external_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('885e9172-f063-40aa-84d4-e09530b62dc9', '2de238ae-c9bf-4aa3-b410-799f11ffcde2') [["subject_destroyed", "t"]]
398
- SyncableModels::Sync Load (0.2ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('885e9172-f063-40aa-84d4-e09530b62dc9', '2de238ae-c9bf-4aa3-b410-799f11ffcde2') [["subject_destroyed", "t"]]
399
- Project Load (0.2ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
400
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
401
-  (0.1ms) SAVEPOINT active_record_1
402
- SQL (0.2ms) UPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", 1], ["subject_destroyed", "f"], ["updated_at", "2016-03-29 11:40:42.092662"], ["id", 1]]
403
-  (0.1ms) RELEASE SAVEPOINT active_record_1
404
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "2de238ae-c9bf-4aa3-b410-799f11ffcde2"]]
405
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "2de238ae-c9bf-4aa3-b410-799f11ffcde2"]]
396
+ Parameters: {"destination"=>"test", "ids"=>["784ce240-0ec5-45c9-9626-aede0b2be54d", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]}
397
+  (0.1ms) 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
+ SyncableModels::Sync Load (0.2ms) SELECT "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') [["subject_destroyed", "t"]]
399
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
400
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
401
+  (0.0ms) SAVEPOINT active_record_1
402
+ SQL (0.2ms) UPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", 1], ["subject_destroyed", "f"], ["updated_at", "2016-03-29 13:58:21.144154"], ["id", 1]]
403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
404
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]]
405
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]]
406
406
   (0.1ms) SAVEPOINT active_record_1
407
- SQL (0.1ms) UPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", 2], ["subject_destroyed", "f"], ["updated_at", "2016-03-29 11:40:42.097164"], ["id", 2]]
407
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
409
409
  Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE 1=0
410
- Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 1.6ms)
411
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
410
+ Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 1.2ms)
411
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
412
412
  Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
413
413
  Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 3]]
414
414
   (0.1ms) SELECT COUNT(*) FROM "syncs"
415
415
   (0.2ms) rollback transaction
416
-  (0.1ms) begin transaction
416
+  (0.0ms) begin transaction
417
417
   (0.1ms) SAVEPOINT active_record_1
418
- SQL (0.2ms) INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"], ["created_at", "2016-03-29 11:40:42.106020"], ["updated_at", "2016-03-29 11:40:42.106020"]]
419
-  (0.1ms) RELEASE SAVEPOINT active_record_1
418
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
420
420
   (0.1ms) SAVEPOINT active_record_1
421
- SQL (0.2ms) INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Second"], ["uuid", "2de238ae-c9bf-4aa3-b410-799f11ffcde2"], ["created_at", "2016-03-29 11:40:42.108504"], ["updated_at", "2016-03-29 11:40:42.108504"]]
421
+ SQL (0.1ms) INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
   (0.1ms) RELEASE SAVEPOINT active_record_1
423
-  (0.1ms) SAVEPOINT active_record_1
424
- SQL (0.1ms) INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Third"], ["uuid", "be042852-2e63-44b4-9f8d-0caeaa976e5a"], ["created_at", "2016-03-29 11:40:42.110727"], ["updated_at", "2016-03-29 11:40:42.110727"]]
425
-  (0.1ms) RELEASE SAVEPOINT active_record_1
426
- SyncableModels::Sync Exists (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
428
- SQL (0.2ms) 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
+  (0.0ms) SAVEPOINT active_record_1
424
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
426
+ SyncableModels::Sync Exists (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
428
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
430
430
  SyncableModels::Sync Exists (0.1ms) 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
   (0.1ms) SAVEPOINT active_record_1
432
- SQL (0.2ms) 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", "2de238ae-c9bf-4aa3-b410-799f11ffcde2"], ["created_at", "2016-03-29 11:40:42.119965"], ["updated_at", "2016-03-29 11:40:42.119965"]]
432
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
434
434
  SyncableModels::Sync Exists (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
436
- SQL (0.1ms) 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", "be042852-2e63-44b4-9f8d-0caeaa976e5a"], ["created_at", "2016-03-29 11:40:42.124632"], ["updated_at", "2016-03-29 11:40:42.124632"]]
435
+  (0.0ms) SAVEPOINT active_record_1
436
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
438
-  (0.1ms) SAVEPOINT active_record_1
438
+  (0.0ms) SAVEPOINT active_record_1
439
439
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
440
440
  Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
441
- SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 11:40:42.127467"], ["updated_at", "2016-03-29 11:40:42.128800"], ["id", 1]]
442
- SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
443
- SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
444
-  (0.1ms) RELEASE SAVEPOINT active_record_1
445
-  (0.1ms) SAVEPOINT active_record_1
441
+ SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 13:58:21.168330"], ["updated_at", "2016-03-29 13:58:21.169357"], ["id", 1]]
442
+ SyncableModels::Sync Load (0.0ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
443
+ SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
444
+  (0.0ms) RELEASE SAVEPOINT active_record_1
445
+  (0.0ms) SAVEPOINT active_record_1
446
446
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 2], ["subject_type", "Project"]]
447
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
448
- SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 11:40:42.133200"], ["updated_at", "2016-03-29 11:40:42.134423"], ["id", 2]]
449
- SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 2], ["subject_type", "Project"]]
450
- SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "2de238ae-c9bf-4aa3-b410-799f11ffcde2"]]
451
-  (0.1ms) RELEASE SAVEPOINT active_record_1
447
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
448
+ SQL (0.1ms) 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
+ SyncableModels::Sync Load (0.0ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 2], ["subject_type", "Project"]]
450
+ SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]]
451
+  (0.0ms) RELEASE SAVEPOINT active_record_1
452
452
  Processing by ImportApiController#sync_projects as HTML
453
- Parameters: {"destination"=>"test", "ids"=>["885e9172-f063-40aa-84d4-e09530b62dc9", "2de238ae-c9bf-4aa3-b410-799f11ffcde2"]}
454
-  (0.1ms) SELECT "syncs"."subject_external_id" FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('885e9172-f063-40aa-84d4-e09530b62dc9', '2de238ae-c9bf-4aa3-b410-799f11ffcde2') [["subject_destroyed", "t"]]
455
- SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."destination" = 'test' AND "syncs"."subject_destroyed" = ? AND "syncs"."subject_external_id" IN ('885e9172-f063-40aa-84d4-e09530b62dc9', '2de238ae-c9bf-4aa3-b410-799f11ffcde2') [["subject_destroyed", "t"]]
456
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
457
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
458
-  (0.1ms) SAVEPOINT active_record_1
459
- SQL (0.1ms) UPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", 1], ["subject_destroyed", "f"], ["updated_at", "2016-03-29 11:40:42.144107"], ["id", 1]]
460
-  (0.1ms) RELEASE SAVEPOINT active_record_1
461
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "2de238ae-c9bf-4aa3-b410-799f11ffcde2"]]
462
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "2de238ae-c9bf-4aa3-b410-799f11ffcde2"]]
453
+ Parameters: {"destination"=>"test", "ids"=>["784ce240-0ec5-45c9-9626-aede0b2be54d", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]}
454
+  (0.1ms) 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
+ SyncableModels::Sync Load (0.1ms) SELECT "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') [["subject_destroyed", "t"]]
456
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
457
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
458
+  (0.0ms) SAVEPOINT active_record_1
459
+ SQL (0.1ms) UPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", 1], ["subject_destroyed", "f"], ["updated_at", "2016-03-29 13:58:21.179342"], ["id", 1]]
460
+  (0.0ms) RELEASE SAVEPOINT active_record_1
461
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]]
462
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "68279581-6bcd-4c8d-bddc-0db1f0f906d3"]]
463
463
   (0.1ms) SAVEPOINT active_record_1
464
- SQL (0.1ms) UPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", 2], ["subject_destroyed", "f"], ["updated_at", "2016-03-29 11:40:42.148486"], ["id", 2]]
465
-  (0.1ms) RELEASE SAVEPOINT active_record_1
464
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
466
466
  Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE 1=0
467
- Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 1.2ms)
467
+ Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 0.8ms)
468
468
  Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
469
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
470
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 3]]
469
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
470
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 3]]
471
471
  SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
472
472
  SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 2], ["subject_type", "Project"]]
473
-  (0.3ms) rollback transaction
474
-  (0.1ms) begin transaction
475
-  (0.1ms) SAVEPOINT active_record_1
476
- SQL (0.3ms) INSERT INTO "projects" ("name", "uuid", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
478
- Project Load (0.2ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "28af9b3d-0338-4968-b949-c1b2ba644db9"]]
479
-  (0.1ms) SAVEPOINT active_record_1
480
- SQL (0.3ms) INSERT INTO "projects" ("uuid", "external_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
482
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"]]
483
-  (0.1ms) SAVEPOINT active_record_1
484
- SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
485
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
486
- SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 11:40:42.167615"], ["updated_at", "2016-03-29 11:40:42.168787"], ["id", 1]]
487
- SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
488
- SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
489
-  (0.1ms) RELEASE SAVEPOINT active_record_1
490
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "28af9b3d-0338-4968-b949-c1b2ba644db9"]]
491
473
   (0.2ms) rollback transaction
492
474
   (0.1ms) begin transaction
493
-  (0.1ms) SAVEPOINT active_record_1
494
- SQL (0.2ms) INSERT INTO "projects" ("name", "uuid", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "First"], ["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"], ["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"], ["created_at", "2016-03-29 11:40:42.175174"], ["updated_at", "2016-03-29 11:40:42.175174"]]
475
+  (0.0ms) SAVEPOINT active_record_1
476
+ SQL (0.2ms) INSERT INTO "projects" ("name", "uuid", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
478
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "954725ef-3a4c-44ef-9cd5-37af1167ccbd"]]
479
+  (0.0ms) SAVEPOINT active_record_1
480
+ SQL (0.2ms) INSERT INTO "projects" ("uuid", "external_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
   (0.1ms) RELEASE SAVEPOINT active_record_1
496
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "b95466f0-7bd8-40ac-9631-13ced1fe63f8"]]
497
-  (0.1ms) SAVEPOINT active_record_1
498
- SQL (0.2ms) INSERT INTO "projects" ("uuid", "external_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["uuid", "e1af7fef-6e78-4dd0-a1ed-3fc338d63da7"], ["external_id", "b95466f0-7bd8-40ac-9631-13ced1fe63f8"], ["name", "ImportedProject"], ["created_at", "2016-03-29 11:40:42.179514"], ["updated_at", "2016-03-29 11:40:42.179514"]]
482
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"]]
483
+  (0.0ms) SAVEPOINT active_record_1
484
+ SQL (0.0ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
485
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
486
+ SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 13:58:21.195435"], ["updated_at", "2016-03-29 13:58:21.196184"], ["id", 1]]
487
+ SyncableModels::Sync Load (0.0ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
488
+ SQL (0.0ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
499
489
   (0.1ms) RELEASE SAVEPOINT active_record_1
500
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"]]
501
-  (0.1ms) SAVEPOINT active_record_1
502
- SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
490
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "954725ef-3a4c-44ef-9cd5-37af1167ccbd"]]
491
+  (0.1ms) rollback transaction
492
+  (0.0ms) begin transaction
493
+  (0.0ms) SAVEPOINT active_record_1
494
+ SQL (0.2ms) INSERT INTO "projects" ("name", "uuid", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
496
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "5d922f9f-c155-4bcb-a9b0-b1d9000923ac"]]
497
+  (0.0ms) SAVEPOINT active_record_1
498
+ SQL (0.1ms) INSERT INTO "projects" ("uuid", "external_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
500
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"]]
501
+  (0.0ms) SAVEPOINT active_record_1
502
+ SQL (0.0ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
503
503
  Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
504
- SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 11:40:42.183224"], ["updated_at", "2016-03-29 11:40:42.184350"], ["id", 1]]
505
- SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
506
- SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
504
+ SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 13:58:21.205685"], ["updated_at", "2016-03-29 13:58:21.206652"], ["id", 1]]
505
+ SyncableModels::Sync Load (0.0ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
506
+ SQL (0.0ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
507
507
   (0.1ms) RELEASE SAVEPOINT active_record_1
508
- Project Load (0.2ms) SELECT "projects".* FROM "projects" ORDER BY "projects"."id" DESC LIMIT 1
508
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" ORDER BY "projects"."id" DESC LIMIT 1
509
509
   (0.2ms) rollback transaction
510
510
   (0.1ms) begin transaction
511
-  (0.1ms) SAVEPOINT active_record_1
512
- SQL (0.2ms) INSERT INTO "projects" ("name", "uuid", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "First"], ["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"], ["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"], ["created_at", "2016-03-29 11:40:42.190499"], ["updated_at", "2016-03-29 11:40:42.190499"]]
513
-  (0.1ms) RELEASE SAVEPOINT active_record_1
514
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "aa9cc353-b9cb-419c-89cd-004fdbbc3f85"]]
515
-  (0.1ms) SAVEPOINT active_record_1
516
- SQL (0.2ms) INSERT INTO "projects" ("uuid", "external_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) SAVEPOINT active_record_1
512
+ SQL (0.1ms) INSERT INTO "projects" ("name", "uuid", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
   (0.1ms) RELEASE SAVEPOINT active_record_1
518
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"]]
519
-  (0.1ms) SAVEPOINT active_record_1
520
- SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
514
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "e0876bc8-162d-4a23-87cb-3e8dc82a8956"]]
515
+  (0.0ms) SAVEPOINT active_record_1
516
+ SQL (0.1ms) INSERT INTO "projects" ("uuid", "external_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
518
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"]]
519
+  (0.0ms) SAVEPOINT active_record_1
520
+ SQL (0.0ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
521
521
  Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
522
- SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 11:40:42.198797"], ["updated_at", "2016-03-29 11:40:42.200083"], ["id", 1]]
523
- SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
524
- SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
525
-  (0.1ms) RELEASE SAVEPOINT active_record_1
526
- Project Load (0.2ms) SELECT "projects".* FROM "projects" ORDER BY "projects"."id" DESC LIMIT 1
527
-  (0.2ms) rollback transaction
528
-  (0.1ms) begin transaction
529
-  (0.1ms) SAVEPOINT active_record_1
530
- SQL (0.2ms) INSERT INTO "projects" ("name", "uuid", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 13:58:21.215765"], ["updated_at", "2016-03-29 13:58:21.216499"], ["id", 1]]
523
+ SyncableModels::Sync Load (0.0ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
524
+ SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
531
525
   (0.1ms) RELEASE SAVEPOINT active_record_1
532
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "0936fc4b-16cd-40c0-ab6c-c60966f95118"]]
533
-  (0.1ms) SAVEPOINT active_record_1
534
- SQL (0.2ms) INSERT INTO "projects" ("uuid", "external_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["uuid", "5db32f71-466c-45b1-bcd4-c085ab2e42f8"], ["external_id", "0936fc4b-16cd-40c0-ab6c-c60966f95118"], ["name", "ImportedProject"], ["created_at", "2016-03-29 11:40:42.252504"], ["updated_at", "2016-03-29 11:40:42.252504"]]
526
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" ORDER BY "projects"."id" DESC LIMIT 1
527
+  (0.1ms) rollback transaction
528
+  (0.0ms) begin transaction
529
+  (0.0ms) SAVEPOINT active_record_1
530
+ SQL (0.1ms) INSERT INTO "projects" ("name", "uuid", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
   (0.1ms) RELEASE SAVEPOINT active_record_1
536
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"]]
537
-  (0.1ms) SAVEPOINT active_record_1
532
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "cc8dab13-6dff-42bf-900f-4604b2684eb4"]]
533
+  (0.0ms) SAVEPOINT active_record_1
534
+ SQL (0.1ms) INSERT INTO "projects" ("uuid", "external_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
536
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."external_id" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["external_id", "8e9d12b3-5df0-46c3-ae19-6ac7d10879a4"]]
537
+  (0.0ms) SAVEPOINT active_record_1
538
538
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
539
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
540
- SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 11:40:42.256573"], ["updated_at", "2016-03-29 11:40:42.257685"], ["id", 1]]
539
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
540
+ SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 13:58:21.225450"], ["updated_at", "2016-03-29 13:58:21.226190"], ["id", 1]]
541
541
  SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
542
- SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
542
+ SQL (0.0ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
543
543
   (0.1ms) RELEASE SAVEPOINT active_record_1
544
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
545
-  (0.2ms) rollback transaction
546
-  (0.1ms) begin transaction
547
-  (0.1ms) SAVEPOINT active_record_1
548
- SQL (0.3ms) INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["external_id", "73"], ["created_at", "2016-03-29 11:40:42.264406"], ["updated_at", "2016-03-29 11:40:42.264406"]]
549
-  (0.1ms) RELEASE SAVEPOINT active_record_1
550
- Team Load (0.2ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "42"]]
551
-  (0.1ms) SAVEPOINT active_record_1
552
- SQL (0.2ms) INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "ImportedTeam"], ["external_id", "42"], ["created_at", "2016-03-29 11:40:42.268422"], ["updated_at", "2016-03-29 11:40:42.268422"]]
544
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
545
+  (0.1ms) rollback transaction
546
+  (0.0ms) begin transaction
547
+  (0.0ms) SAVEPOINT active_record_1
548
+ SQL (0.2ms) INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
   (0.1ms) RELEASE SAVEPOINT active_record_1
554
- Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "73"]]
555
-  (0.1ms) SAVEPOINT active_record_1
556
- SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
550
+ Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "42"]]
551
+  (0.0ms) SAVEPOINT active_record_1
552
+ SQL (0.1ms) INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "ImportedTeam"], ["external_id", "42"], ["created_at", "2016-03-29 13:58:21.233308"], ["updated_at", "2016-03-29 13:58:21.233308"]]
553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
554
+ Team Load (0.0ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "73"]]
555
+  (0.0ms) SAVEPOINT active_record_1
556
+ SQL (0.0ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
557
557
  SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
558
558
  SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
559
559
   (0.1ms) RELEASE SAVEPOINT active_record_1
560
560
   (0.1ms) SELECT COUNT(*) FROM "teams"
561
- Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "42"]]
562
-  (0.2ms) rollback transaction
561
+ Team Load (0.0ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "42"]]
562
+  (0.1ms) rollback transaction
563
563
   (0.1ms) begin transaction
564
-  (0.1ms) SAVEPOINT active_record_1
565
- SQL (0.2ms) INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["external_id", "73"], ["created_at", "2016-03-29 11:40:42.277237"], ["updated_at", "2016-03-29 11:40:42.277237"]]
566
-  (0.1ms) RELEASE SAVEPOINT active_record_1
564
+  (0.0ms) SAVEPOINT active_record_1
565
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
567
567
  Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "42"]]
568
-  (0.1ms) SAVEPOINT active_record_1
569
- SQL (0.2ms) INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "ImportedTeam"], ["external_id", "42"], ["created_at", "2016-03-29 11:40:42.281070"], ["updated_at", "2016-03-29 11:40:42.281070"]]
570
-  (0.1ms) RELEASE SAVEPOINT active_record_1
571
- Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "73"]]
572
-  (0.1ms) SAVEPOINT active_record_1
568
+  (0.0ms) SAVEPOINT active_record_1
569
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
571
+ Team Load (0.0ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "73"]]
572
+  (0.0ms) SAVEPOINT active_record_1
573
573
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
574
- SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
575
- SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
576
-  (0.1ms) RELEASE SAVEPOINT active_record_1
574
+ SQL (0.0ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
575
+ SQL (0.0ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
576
+  (0.0ms) RELEASE SAVEPOINT active_record_1
577
577
  Team Load (0.1ms) SELECT "teams".* FROM "teams" ORDER BY "teams"."id" DESC LIMIT 1
578
-  (0.2ms) rollback transaction
578
+  (0.1ms) rollback transaction
579
579
   (0.1ms) begin transaction
580
-  (0.1ms) SAVEPOINT active_record_1
581
- SQL (0.2ms) INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["external_id", "73"], ["created_at", "2016-03-29 11:40:42.289036"], ["updated_at", "2016-03-29 11:40:42.289036"]]
582
-  (0.1ms) RELEASE SAVEPOINT active_record_1
583
- Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "42"]]
584
-  (0.1ms) SAVEPOINT active_record_1
585
- SQL (0.2ms) INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "ImportedTeam"], ["external_id", "42"], ["created_at", "2016-03-29 11:40:42.292647"], ["updated_at", "2016-03-29 11:40:42.292647"]]
580
+  (0.0ms) SAVEPOINT active_record_1
581
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
583
+ Team Load (0.0ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "42"]]
584
+  (0.0ms) SAVEPOINT active_record_1
585
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
587
- Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "73"]]
588
-  (0.1ms) SAVEPOINT active_record_1
589
- SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
587
+ Team Load (0.0ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "73"]]
588
+  (0.0ms) SAVEPOINT active_record_1
589
+ SQL (0.0ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
590
590
  SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
591
- SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
592
-  (0.1ms) RELEASE SAVEPOINT active_record_1
591
+ SQL (0.0ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
593
593
  Team Load (0.1ms) SELECT "teams".* FROM "teams" ORDER BY "teams"."id" DESC LIMIT 1
594
-  (0.2ms) rollback transaction
595
-  (0.1ms) begin transaction
596
-  (0.1ms) SAVEPOINT active_record_1
597
- SQL (0.2ms) INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["external_id", "73"], ["created_at", "2016-03-29 11:40:42.300629"], ["updated_at", "2016-03-29 11:40:42.300629"]]
598
-  (0.1ms) RELEASE SAVEPOINT active_record_1
594
+  (0.1ms) rollback transaction
595
+  (0.0ms) begin transaction
596
+  (0.0ms) SAVEPOINT active_record_1
597
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
599
599
  Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "42"]]
600
-  (0.1ms) SAVEPOINT active_record_1
601
- SQL (0.2ms) INSERT INTO "teams" ("name", "external_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "ImportedTeam"], ["external_id", "42"], ["created_at", "2016-03-29 11:40:42.304374"], ["updated_at", "2016-03-29 11:40:42.304374"]]
602
-  (0.1ms) RELEASE SAVEPOINT active_record_1
603
- Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "73"]]
604
-  (0.1ms) SAVEPOINT active_record_1
605
- SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
600
+  (0.0ms) SAVEPOINT active_record_1
601
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
603
+ Team Load (0.0ms) SELECT "teams".* FROM "teams" WHERE "teams"."external_id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["external_id", "73"]]
604
+  (0.0ms) SAVEPOINT active_record_1
605
+ SQL (0.0ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
606
606
  SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
607
- SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
608
-  (0.1ms) RELEASE SAVEPOINT active_record_1
607
+ SQL (0.0ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
608
+  (0.0ms) RELEASE SAVEPOINT active_record_1
609
609
  Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? LIMIT 1 [["id", 1]]
610
-  (0.2ms) rollback transaction
610
+  (0.1ms) rollback transaction
611
611
   (0.1ms) begin transaction
612
-  (0.1ms) SAVEPOINT active_record_1
613
- SQL (0.2ms) INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"], ["created_at", "2016-03-29 11:40:42.313379"], ["updated_at", "2016-03-29 11:40:42.313379"]]
612
+  (0.0ms) SAVEPOINT active_record_1
613
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
615
- SyncableModels::Sync Exists (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
617
- SQL (0.2ms) 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.318730"], ["updated_at", "2016-03-29 11:40:42.318730"]]
615
+ SyncableModels::Sync Exists (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
617
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
619
-  (0.2ms) SELECT COUNT(*) FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
619
+  (0.1ms) SELECT COUNT(*) FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
620
620
   (0.2ms) rollback transaction
621
-  (0.1ms) begin transaction
622
-  (0.1ms) SAVEPOINT active_record_1
623
- SQL (0.2ms) INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"], ["created_at", "2016-03-29 11:40:42.324206"], ["updated_at", "2016-03-29 11:40:42.324206"]]
621
+  (0.0ms) begin transaction
622
+  (0.0ms) SAVEPOINT active_record_1
623
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
625
- SyncableModels::Sync Exists (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
627
- SQL (0.2ms) 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.329176"], ["updated_at", "2016-03-29 11:40:42.329176"]]
625
+ SyncableModels::Sync Exists (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
627
+ SQL (0.2ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
629
629
  SyncableModels::Sync Load (0.2ms) 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
-  (0.2ms) rollback transaction
631
-  (0.1ms) begin transaction
632
-  (0.1ms) SAVEPOINT active_record_1
633
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:42.335134"], ["updated_at", "2016-03-29 11:40:42.335134"]]
630
+  (0.1ms) rollback transaction
631
+  (0.0ms) begin transaction
632
+  (0.0ms) SAVEPOINT active_record_1
633
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
635
- SyncableModels::Sync Exists (0.1ms) 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"]]
635
+ SyncableModels::Sync Exists (0.0ms) 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
   (0.1ms) SAVEPOINT active_record_1
637
- SQL (0.3ms) 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 11:40:42.340201"], ["updated_at", "2016-03-29 11:40:42.340201"]]
638
-  (0.1ms) RELEASE SAVEPOINT active_record_1
637
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
639
639
  SyncableModels::Sync Load (0.1ms) 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
-  (0.2ms) rollback transaction
640
+  (0.1ms) rollback transaction
641
641
   (0.1ms) begin transaction
642
-  (0.1ms) SAVEPOINT active_record_1
643
- SQL (0.2ms) INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"], ["created_at", "2016-03-29 11:40:42.345936"], ["updated_at", "2016-03-29 11:40:42.345936"]]
644
-  (0.1ms) RELEASE SAVEPOINT active_record_1
645
- SyncableModels::Sync Exists (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
647
- SQL (0.2ms) 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.350984"], ["updated_at", "2016-03-29 11:40:42.350984"]]
648
-  (0.1ms) RELEASE SAVEPOINT active_record_1
642
+  (0.0ms) SAVEPOINT active_record_1
643
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
645
+ SyncableModels::Sync Exists (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
647
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
649
649
  SyncableModels::Sync Load (0.1ms) 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
-  (0.2ms) rollback transaction
651
-  (0.1ms) begin transaction
650
+  (0.1ms) rollback transaction
651
+  (0.0ms) begin transaction
652
652
   (0.1ms) SAVEPOINT active_record_1
653
- SQL (0.2ms) INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"], ["created_at", "2016-03-29 11:40:42.356180"], ["updated_at", "2016-03-29 11:40:42.356180"]]
654
-  (0.1ms) RELEASE SAVEPOINT active_record_1
653
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
655
655
  SyncableModels::Sync Exists (0.1ms) 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
   (0.1ms) SAVEPOINT active_record_1
657
- SQL (0.2ms) 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.360921"], ["updated_at", "2016-03-29 11:40:42.360921"]]
658
-  (0.1ms) RELEASE SAVEPOINT active_record_1
657
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
659
659
  SyncableModels::Sync Load (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
661
- SQL (0.2ms) UPDATE "syncs" SET "subject_id" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", nil], ["updated_at", "2016-03-29 11:40:42.364566"], ["id", 1]]
660
+  (0.0ms) SAVEPOINT active_record_1
661
+ SQL (0.2ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
663
-  (0.2ms) rollback transaction
663
+  (0.1ms) rollback transaction
664
664
   (0.1ms) begin transaction
665
665
   (0.1ms) SAVEPOINT active_record_1
666
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:42.368396"], ["updated_at", "2016-03-29 11:40:42.368396"]]
667
-  (0.1ms) RELEASE SAVEPOINT active_record_1
668
- SyncableModels::Sync Exists (0.1ms) 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"]]
669
-  (0.1ms) SAVEPOINT active_record_1
670
- SQL (0.2ms) 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 11:40:42.373106"], ["updated_at", "2016-03-29 11:40:42.373106"]]
671
-  (0.1ms) RELEASE SAVEPOINT active_record_1
666
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:21.294146"], ["updated_at", "2016-03-29 13:58:21.294146"]]
667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
668
+ SyncableModels::Sync Exists (0.0ms) 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"]]
669
+  (0.0ms) SAVEPOINT active_record_1
670
+ SQL (0.1ms) 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.297468"], ["updated_at", "2016-03-29 13:58:21.297468"]]
671
+  (0.0ms) RELEASE SAVEPOINT active_record_1
672
672
  SyncableModels::Sync Load (0.1ms) 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"]]
673
-  (0.1ms) SAVEPOINT active_record_1
674
- SQL (0.1ms) UPDATE "syncs" SET "subject_id" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", nil], ["updated_at", "2016-03-29 11:40:42.376676"], ["id", 1]]
675
-  (0.1ms) RELEASE SAVEPOINT active_record_1
676
-  (0.2ms) rollback transaction
673
+  (0.0ms) SAVEPOINT active_record_1
674
+ SQL (0.1ms) UPDATE "syncs" SET "subject_id" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", nil], ["updated_at", "2016-03-29 13:58:21.299622"], ["id", 1]]
675
+  (0.0ms) RELEASE SAVEPOINT active_record_1
676
+  (0.1ms) rollback transaction
677
677
   (0.1ms) begin transaction
678
678
   (0.1ms) SAVEPOINT active_record_1
679
- SQL (0.2ms) INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"], ["created_at", "2016-03-29 11:40:42.380267"], ["updated_at", "2016-03-29 11:40:42.380267"]]
680
-  (0.1ms) RELEASE SAVEPOINT active_record_1
679
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
681
681
  SyncableModels::Sync Exists (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
683
- SQL (0.2ms) 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.384995"], ["updated_at", "2016-03-29 11:40:42.384995"]]
682
+  (0.0ms) SAVEPOINT active_record_1
683
+ SQL (0.2ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
685
685
  SyncableModels::Sync Load (0.1ms) 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
   (0.1ms) SAVEPOINT active_record_1
687
687
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
688
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
689
- SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 11:40:42.388403"], ["updated_at", "2016-03-29 11:40:42.389563"], ["id", 1]]
688
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
689
+ SQL (0.1ms) 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
  SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
691
- SQL (0.2ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
692
-  (0.1ms) RELEASE SAVEPOINT active_record_1
693
- SyncableModels::Sync Load (0.2ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1 [["id", 1]]
694
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
695
-  (0.2ms) rollback transaction
696
-  (0.0ms) begin transaction
697
-  (0.1ms) SAVEPOINT active_record_1
698
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:42.395805"], ["updated_at", "2016-03-29 11:40:42.395805"]]
699
-  (0.1ms) RELEASE SAVEPOINT active_record_1
700
- SyncableModels::Sync Exists (0.1ms) 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"]]
691
+ SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
692
+  (0.0ms) RELEASE SAVEPOINT active_record_1
693
+ SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1 [["id", 1]]
694
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
695
+  (0.3ms) rollback transaction
696
+  (0.1ms) begin transaction
701
697
   (0.1ms) SAVEPOINT active_record_1
702
- SQL (0.2ms) 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 11:40:42.400221"], ["updated_at", "2016-03-29 11:40:42.400221"]]
698
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:21.314934"], ["updated_at", "2016-03-29 13:58:21.314934"]]
703
699
   (0.1ms) RELEASE SAVEPOINT active_record_1
700
+ SyncableModels::Sync Exists (0.0ms) 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"]]
701
+  (0.0ms) SAVEPOINT active_record_1
702
+ SQL (0.1ms) 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.318082"], ["updated_at", "2016-03-29 13:58:21.318082"]]
703
+  (0.0ms) RELEASE SAVEPOINT active_record_1
704
704
  SyncableModels::Sync Load (0.1ms) 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"]]
705
705
   (0.1ms) SAVEPOINT active_record_1
706
706
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
@@ -708,112 +708,112 @@ Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 1.2ms)
708
708
  SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
709
709
   (0.1ms) RELEASE SAVEPOINT active_record_1
710
710
  SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1 [["id", 1]]
711
-  (0.2ms) rollback transaction
711
+  (0.1ms) rollback transaction
712
712
   (0.1ms) begin transaction
713
-  (0.1ms) SAVEPOINT active_record_1
714
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:42.408285"], ["updated_at", "2016-03-29 11:40:42.408285"]]
713
+  (0.0ms) SAVEPOINT active_record_1
714
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:21.324224"], ["updated_at", "2016-03-29 13:58:21.324224"]]
715
715
   (0.1ms) RELEASE SAVEPOINT active_record_1
716
- SyncableModels::Sync Exists (0.1ms) 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"]]
716
+ SyncableModels::Sync Exists (0.0ms) 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"]]
717
717
   (0.1ms) SAVEPOINT active_record_1
718
- SQL (0.2ms) 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 11:40:42.413305"], ["updated_at", "2016-03-29 11:40:42.413305"]]
718
+ SQL (0.2ms) 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.327533"], ["updated_at", "2016-03-29 13:58:21.327533"]]
719
719
   (0.1ms) RELEASE SAVEPOINT active_record_1
720
720
  SyncableModels::Sync Load (0.1ms) 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"]]
721
721
   (0.1ms) SAVEPOINT active_record_1
722
722
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
723
- SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
723
+ SQL (0.0ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
724
724
  SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
725
-  (0.1ms) RELEASE SAVEPOINT active_record_1
726
- SyncableModels::Sync Load (0.0ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1 [["id", 1]]
727
-  (0.2ms) rollback transaction
728
-  (0.1ms) begin transaction
729
-  (0.0ms) SAVEPOINT active_record_1
730
- SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:42.420043"], ["updated_at", "2016-03-29 11:40:42.420043"]]
731
-  (0.1ms) RELEASE SAVEPOINT active_record_1
732
- SyncableModels::Sync Exists (0.1ms) 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"]]
733
-  (0.0ms) SAVEPOINT active_record_1
734
- SQL (0.2ms) 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 11:40:42.423737"], ["updated_at", "2016-03-29 11:40:42.423737"]]
725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
726
+ SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1 [["id", 1]]
727
+  (0.1ms) rollback transaction
728
+  (0.0ms) begin transaction
729
+  (0.1ms) SAVEPOINT active_record_1
730
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:21.333345"], ["updated_at", "2016-03-29 13:58:21.333345"]]
731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
732
+ SyncableModels::Sync Exists (0.0ms) 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"]]
733
+  (0.1ms) SAVEPOINT active_record_1
734
+ SQL (0.2ms) 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.336487"], ["updated_at", "2016-03-29 13:58:21.336487"]]
735
735
   (0.1ms) RELEASE SAVEPOINT active_record_1
736
736
  SyncableModels::Sync Load (0.1ms) 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"]]
737
-  (0.0ms) SAVEPOINT active_record_1
737
+  (0.1ms) SAVEPOINT active_record_1
738
738
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
739
- SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
739
+ SQL (0.0ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
740
740
  SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
741
741
   (0.1ms) RELEASE SAVEPOINT active_record_1
742
- SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1 [["id", 1]]
742
+ SyncableModels::Sync Load (0.0ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1 [["id", 1]]
743
743
  Team Load (0.0ms) SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["id", 1]]
744
-  (0.2ms) rollback transaction
744
+  (0.1ms) rollback transaction
745
745
   (0.0ms) begin transaction
746
746
   (0.0ms) SAVEPOINT active_record_1
747
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:42.431986"], ["updated_at", "2016-03-29 11:40:42.431986"]]
748
-  (0.1ms) RELEASE SAVEPOINT active_record_1
749
- SyncableModels::Sync Exists (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
751
- SQL (0.3ms) 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 11:40:42.436637"], ["updated_at", "2016-03-29 11:40:42.436637"]]
747
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
749
+ SyncableModels::Sync Exists (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
751
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
753
753
  SyncableModels::Sync Load (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
754
+  (0.0ms) SAVEPOINT active_record_1
755
755
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
756
756
  SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
757
757
  SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
758
-  (0.1ms) RELEASE SAVEPOINT active_record_1
759
- SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1 [["id", 1]]
758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
759
+ SyncableModels::Sync Load (0.0ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1 [["id", 1]]
760
760
   (0.2ms) rollback transaction
761
761
   (0.1ms) begin transaction
762
762
   (0.1ms) SAVEPOINT active_record_1
763
- SQL (0.2ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:42.445408"], ["updated_at", "2016-03-29 11:40:42.445408"]]
763
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
765
- SyncableModels::Sync Exists (0.1ms) 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
-  (0.1ms) SAVEPOINT active_record_1
767
- SQL (0.2ms) 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 11:40:42.450511"], ["updated_at", "2016-03-29 11:40:42.450511"]]
765
+ SyncableModels::Sync Exists (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
767
+ SQL (0.2ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
769
- SyncableModels::Sync Load (0.2ms) 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
-  (0.1ms) SAVEPOINT active_record_1
769
+ SyncableModels::Sync Load (0.1ms) 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
+  (0.0ms) SAVEPOINT active_record_1
771
771
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
772
- SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
772
+ SQL (0.0ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
773
773
  SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
774
774
   (0.1ms) RELEASE SAVEPOINT active_record_1
775
775
  SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."id" = ? LIMIT 1 [["id", 1]]
776
-  (0.3ms) rollback transaction
777
-  (0.1ms) begin transaction
778
-  (0.1ms) SAVEPOINT active_record_1
779
- SQL (0.2ms) INSERT INTO "projects" ("name", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "First"], ["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"], ["created_at", "2016-03-29 11:40:42.459862"], ["updated_at", "2016-03-29 11:40:42.459862"]]
780
-  (0.1ms) RELEASE SAVEPOINT active_record_1
776
+  (0.2ms) rollback transaction
777
+  (0.0ms) begin transaction
778
+  (0.0ms) SAVEPOINT active_record_1
779
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
781
781
  SyncableModels::Sync Exists (0.1ms) 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
   (0.1ms) SAVEPOINT active_record_1
783
- SQL (0.2ms) 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.465117"], ["updated_at", "2016-03-29 11:40:42.465117"]]
783
+ SQL (0.1ms) 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
   (0.1ms) RELEASE SAVEPOINT active_record_1
785
-  (0.1ms) SAVEPOINT active_record_1
785
+  (0.0ms) SAVEPOINT active_record_1
786
786
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
787
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
788
- SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 11:40:42.468197"], ["updated_at", "2016-03-29 11:40:42.469580"], ["id", 1]]
787
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
788
+ SQL (0.1ms) UPDATE "projects" SET "deleted_at" = ?, "updated_at" = ? WHERE "projects"."id" = ? [["deleted_at", "2016-03-29 13:58:21.370815"], ["updated_at", "2016-03-29 13:58:21.371721"], ["id", 1]]
789
789
  SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Project"]]
790
- SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
791
-  (0.1ms) RELEASE SAVEPOINT active_record_1
792
- SyncableModels::Sync Load (0.2ms) SELECT "syncs".* FROM "syncs" ORDER BY "syncs"."id" ASC LIMIT 1
793
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
794
- Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "885e9172-f063-40aa-84d4-e09530b62dc9"]]
790
+ SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
791
+  (0.0ms) RELEASE SAVEPOINT active_record_1
792
+ SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" ORDER BY "syncs"."id" ASC LIMIT 1
793
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
794
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."uuid" = ? ORDER BY "projects"."id" ASC LIMIT 1 [["uuid", "784ce240-0ec5-45c9-9626-aede0b2be54d"]]
795
795
   (0.1ms) SAVEPOINT active_record_1
796
- SQL (0.1ms) UPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", 1], ["subject_destroyed", "f"], ["updated_at", "2016-03-29 11:40:42.476384"], ["id", 1]]
796
+ SQL (0.1ms) UPDATE "syncs" SET "subject_id" = ?, "subject_destroyed" = ?, "updated_at" = ? WHERE "syncs"."id" = ? [["subject_id", 1], ["subject_destroyed", "f"], ["updated_at", "2016-03-29 13:58:21.376929"], ["id", 1]]
797
797
   (0.1ms) RELEASE SAVEPOINT active_record_1
798
- SyncableModels::Sync Load (0.2ms) SELECT "syncs".* FROM "syncs" ORDER BY "syncs"."id" ASC LIMIT 1
798
+ SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" ORDER BY "syncs"."id" ASC LIMIT 1
799
799
   (0.2ms) rollback transaction
800
800
   (0.1ms) begin transaction
801
-  (0.1ms) SAVEPOINT active_record_1
802
- SQL (0.3ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 11:40:42.482237"], ["updated_at", "2016-03-29 11:40:42.482237"]]
803
-  (0.1ms) RELEASE SAVEPOINT active_record_1
804
- SyncableModels::Sync Exists (0.1ms) 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"]]
805
-  (0.1ms) SAVEPOINT active_record_1
806
- SQL (0.2ms) 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 11:40:42.487397"], ["updated_at", "2016-03-29 11:40:42.487397"]]
807
-  (0.1ms) RELEASE SAVEPOINT active_record_1
808
-  (0.1ms) SAVEPOINT active_record_1
801
+  (0.0ms) SAVEPOINT active_record_1
802
+ SQL (0.1ms) INSERT INTO "teams" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "First"], ["created_at", "2016-03-29 13:58:21.380783"], ["updated_at", "2016-03-29 13:58:21.380783"]]
803
+  (0.0ms) RELEASE SAVEPOINT active_record_1
804
+ SyncableModels::Sync Exists (0.0ms) 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"]]
805
+  (0.0ms) SAVEPOINT active_record_1
806
+ SQL (0.2ms) 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.383554"], ["updated_at", "2016-03-29 13:58:21.383554"]]
807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
808
+  (0.0ms) SAVEPOINT active_record_1
809
809
  SQL (0.1ms) UPDATE "syncs" SET "subject_id" = NULL WHERE "syncs"."subject_id" = ? AND "syncs"."subject_type" = ? [["subject_id", 1], ["subject_type", "Team"]]
810
- SQL (0.1ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
810
+ SQL (0.0ms) DELETE FROM "teams" WHERE "teams"."id" = ? [["id", 1]]
811
811
  SQL (0.1ms) UPDATE "syncs" SET "subject_destroyed" = 't' WHERE "syncs"."subject_external_id" = ? [["subject_external_id", "1"]]
812
812
   (0.1ms) RELEASE SAVEPOINT active_record_1
813
- SyncableModels::Sync Load (0.2ms) SELECT "syncs".* FROM "syncs" ORDER BY "syncs"."id" ASC LIMIT 1
814
- Team Load (0.1ms) SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["id", 1]]
815
-  (0.1ms) SAVEPOINT active_record_1
813
+ SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" ORDER BY "syncs"."id" ASC LIMIT 1
814
+ Team Load (0.0ms) SELECT "teams".* FROM "teams" WHERE "teams"."id" = ? ORDER BY "teams"."id" ASC LIMIT 1 [["id", 1]]
815
+  (0.0ms) SAVEPOINT active_record_1
816
816
  SQL (0.1ms) DELETE FROM "syncs" WHERE "syncs"."id" = ? [["id", 1]]
817
-  (0.1ms) RELEASE SAVEPOINT active_record_1
817
+  (0.0ms) RELEASE SAVEPOINT active_record_1
818
818
  SyncableModels::Sync Load (0.1ms) SELECT "syncs".* FROM "syncs" ORDER BY "syncs"."id" ASC LIMIT 1
819
-  (0.3ms) rollback transaction
819
+  (0.2ms) rollback transaction