switchman 1.2.40 → 1.2.41

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 394ecb489a1b29715c5ad1780702a6a302380740
4
- data.tar.gz: aaf98b95857eebff5780fd5887f1c9601e35fc02
3
+ metadata.gz: cf24c432b69a19e8427cd07d4358d6c58bc5b474
4
+ data.tar.gz: 1b8fad2c217f77295ed968601032b7f0ec4026f4
5
5
  SHA512:
6
- metadata.gz: 32f35c2a076474ce6f3682127d3907bfe782a411851ac9a8229acc0ff58dd935c842ac4db6aeafbe9e63647211d7e83a6e29b2a5c12e9cc8921f410da37624d7
7
- data.tar.gz: 624a461ff2967fb281a0b954442e61335a40176740c602f872d11f8b6d3fb879ba76781ac9bed588476fd5257845af7699a502cc3dc7e977a4d04ca13bd2833f
6
+ metadata.gz: 78675de957f350f00c51dadbf110a604d7d4566dab36ecc6c4823c18089e29923493b9270e7097fab868818ead2afbf11a0fabda25626ae12ca91dd301d49ec4
7
+ data.tar.gz: 2e7db4fa882c02156d16fe36916ed94d2f52f2fa190c4e723496d64a55251890c0570ba2f0ccf9cf00acde54229307b9d9180d8d0d6b1745d91cf34aeafaf63b
@@ -117,6 +117,15 @@ module Switchman
117
117
  klass.extend(ClassMethods)
118
118
  klass.attribute_method_prefix "global_", "local_", "original_"
119
119
  end
120
+
121
+ unless ::Rails.version < '4'
122
+ # ensure that we're using the sharded attribute method
123
+ # and not the silly one in AR::AttributeMethods::PrimaryKey
124
+ def id
125
+ self.class.define_attribute_methods
126
+ super
127
+ end
128
+ end
120
129
  end
121
130
  end
122
131
  end
@@ -68,7 +68,9 @@ module Switchman
68
68
  when 'MySQL', 'Mysql2'
69
69
  conn.execute("USE #{spec.config[:database]}")
70
70
  when 'PostgreSQL'
71
- conn.schema_search_path = spec.config[:schema_search_path]
71
+ if conn.schema_search_path != spec.config[:schema_search_path]
72
+ conn.schema_search_path = spec.config[:schema_search_path]
73
+ end
72
74
  when 'SQLite'
73
75
  # This is an artifact of the adapter modifying the path to be an absolute path when it is instantiated; just let it slide
74
76
  else
@@ -205,8 +205,8 @@ module Switchman
205
205
  old_verbose = ::ActiveRecord::Migration.verbose
206
206
  ::ActiveRecord::Migration.verbose = false
207
207
 
208
- reset_column_information
209
208
  unless create_schema == false
209
+ reset_column_information
210
210
  migrate = -> { ::ActiveRecord::Migrator.migrate(::ActiveRecord::Migrator.migrations_paths) }
211
211
  if ::ActiveRecord::Base.connection.supports_ddl_transactions?
212
212
  ::ActiveRecord::Base.connection.transaction(requires_new: true, &migrate)
@@ -226,7 +226,7 @@ module Switchman
226
226
  rescue
227
227
  shard.destroy
228
228
  shard.drop_database if shard.name == name rescue nil
229
- reset_column_information rescue nil
229
+ reset_column_information unless create_schema == false rescue nil
230
230
  raise
231
231
  end
232
232
  end
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.2.40"
2
+ VERSION = "1.2.41"
3
3
  end
@@ -940153,3 +940153,1121 @@ LINE 1: SELECT COUNT(*) FROM "users"
940153
940153
   (0.1ms) ROLLBACK [test:714 master]
940154
940154
  SQL (0.4ms) DELETE FROM "switchman_shards" [test:713 master]
940155
940155
  Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:713 master]
940156
+  (1.9ms) SELECT * FROM unnest(current_schemas(false))
940157
+ Switchman::Shard Load (25.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940158
+ SQL (0.4ms) DELETE FROM "switchman_shards"
940159
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940160
+  (0.2ms) BEGIN
940161
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940162
+ SQL (12.0ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940163
+  (6.2ms) COMMIT
940164
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940165
+ Switchman::Shard Load (18.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940166
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940167
+  (0.1ms) BEGIN
940168
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940169
+  (0.4ms) COMMIT
940170
+  (0.2ms) BEGIN
940171
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940172
+  (0.4ms) COMMIT
940173
+ SQL (0.6ms) DELETE FROM "switchman_shards" [test:736 master]
940174
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:736 master]
940175
+  (0.1ms) BEGIN [test:736 master]
940176
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:736 master]
940177
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 736]] [test:736 master]
940178
+  (0.4ms) COMMIT [test:736 master]
940179
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:736 master]
940180
+  (0.1ms) BEGIN [test:736 master]
940181
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 737], ["name", "shard1"]] [test:736 master]
940182
+  (0.3ms) COMMIT [test:736 master]
940183
+  (0.1ms) BEGIN [test:736 master]
940184
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 738], ["name", "shard2"]] [test:736 master]
940185
+  (0.3ms) COMMIT [test:736 master]
940186
+  (0.2ms) BEGIN [test:736 master]
940187
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:736 master]
940188
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 737]] [test:736 master]
940189
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 738]] [test:736 master]
940190
+  (0.1ms) BEGIN [1:738 master]
940191
+  (0.1ms) SAVEPOINT active_record_1 [test:736 master]
940192
+ SQL (24.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-09-08 14:37:28.351249"], ["updated_at", "2015-09-08 14:37:28.351249"]] [test:736 master]
940193
+  (0.3ms) RELEASE SAVEPOINT active_record_1 [test:736 master]
940194
+  (0.2ms) ROLLBACK [1:738 master]
940195
+  (0.3ms) ROLLBACK [test:736 master]
940196
+ SQL (0.5ms) DELETE FROM "switchman_shards" [test:736 master]
940197
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:736 master]
940198
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
940199
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940200
+ SQL (0.4ms) DELETE FROM "switchman_shards"
940201
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940202
+  (0.2ms) BEGIN
940203
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940204
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940205
+  (6.3ms) COMMIT
940206
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940207
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940208
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940209
+  (0.2ms) BEGIN
940210
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940211
+  (6.2ms) COMMIT
940212
+  (0.2ms) BEGIN
940213
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940214
+  (4.7ms) COMMIT
940215
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:739 master]
940216
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:739 master]
940217
+  (0.1ms) BEGIN [test:739 master]
940218
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:739 master]
940219
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 739]] [test:739 master]
940220
+  (0.2ms) COMMIT [test:739 master]
940221
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:739 master]
940222
+  (0.1ms) BEGIN [test:739 master]
940223
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 740], ["name", "shard1"]] [test:739 master]
940224
+  (0.2ms) COMMIT [test:739 master]
940225
+  (0.1ms) BEGIN [test:739 master]
940226
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 741], ["name", "shard2"]] [test:739 master]
940227
+  (0.2ms) COMMIT [test:739 master]
940228
+  (0.1ms) BEGIN [test:739 master]
940229
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:739 master]
940230
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 740]] [test:739 master]
940231
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 741]] [test:739 master]
940232
+  (0.2ms) BEGIN [1:741 master]
940233
+  (0.2ms) SAVEPOINT active_record_1 [test:739 master]
940234
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-09-08 14:38:43.065751"], ["updated_at", "2015-09-08 14:38:43.065751"]] [test:739 master]
940235
+  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:739 master]
940236
+  (0.2ms) ROLLBACK [1:741 master]
940237
+  (0.1ms) ROLLBACK [test:739 master]
940238
+ SQL (0.6ms) DELETE FROM "switchman_shards" [test:739 master]
940239
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:739 master]
940240
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
940241
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940242
+ SQL (0.4ms) DELETE FROM "switchman_shards"
940243
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940244
+  (0.2ms) BEGIN
940245
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940246
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940247
+  (8.2ms) COMMIT
940248
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940249
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940250
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940251
+  (0.2ms) BEGIN
940252
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940253
+  (9.2ms) COMMIT
940254
+  (0.9ms) BEGIN
940255
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940256
+  (0.4ms) COMMIT
940257
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:742 master]
940258
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:742 master]
940259
+  (0.1ms) BEGIN [test:742 master]
940260
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:742 master]
940261
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 742]] [test:742 master]
940262
+  (0.4ms) COMMIT [test:742 master]
940263
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:742 master]
940264
+  (0.1ms) BEGIN [test:742 master]
940265
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 743], ["name", "shard1"]] [test:742 master]
940266
+  (0.3ms) COMMIT [test:742 master]
940267
+  (0.1ms) BEGIN [test:742 master]
940268
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 744], ["name", "shard2"]] [test:742 master]
940269
+  (0.3ms) COMMIT [test:742 master]
940270
+  (0.1ms) BEGIN [test:742 master]
940271
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:742 master]
940272
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 743]] [test:742 master]
940273
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 744]] [test:742 master]
940274
+  (0.1ms) BEGIN [1:744 master]
940275
+  (0.1ms) SAVEPOINT active_record_1 [test:742 master]
940276
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-09-08 14:39:07.027425"], ["updated_at", "2015-09-08 14:39:07.027425"]] [test:742 master]
940277
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:742 master]
940278
+  (0.1ms) ROLLBACK [1:744 master]
940279
+  (0.1ms) ROLLBACK [test:742 master]
940280
+ SQL (11.3ms) DELETE FROM "switchman_shards" [test:742 master]
940281
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:742 master]
940282
+  (0.5ms) SELECT * FROM unnest(current_schemas(false))
940283
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940284
+ SQL (0.4ms) DELETE FROM "switchman_shards"
940285
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940286
+  (0.1ms) BEGIN
940287
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940288
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940289
+  (6.1ms) COMMIT
940290
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940291
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940292
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940293
+  (0.3ms) BEGIN
940294
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940295
+  (6.2ms) COMMIT
940296
+  (0.1ms) BEGIN
940297
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940298
+  (0.4ms) COMMIT
940299
+ SQL (0.3ms) DELETE FROM "switchman_shards" [test:745 master]
940300
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:745 master]
940301
+  (0.1ms) BEGIN [test:745 master]
940302
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:745 master]
940303
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 745]] [test:745 master]
940304
+  (0.3ms) COMMIT [test:745 master]
940305
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:745 master]
940306
+  (0.1ms) BEGIN [test:745 master]
940307
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 746], ["name", "shard1"]] [test:745 master]
940308
+  (0.3ms) COMMIT [test:745 master]
940309
+  (0.1ms) BEGIN [test:745 master]
940310
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 747], ["name", "shard2"]] [test:745 master]
940311
+  (0.3ms) COMMIT [test:745 master]
940312
+  (0.1ms) BEGIN [test:745 master]
940313
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:745 master]
940314
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 746]] [test:745 master]
940315
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 747]] [test:745 master]
940316
+  (0.1ms) BEGIN [1:747 master]
940317
+  (0.1ms) SAVEPOINT active_record_1 [test:745 master]
940318
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-09-08 14:40:39.286059"], ["updated_at", "2015-09-08 14:40:39.286059"]] [test:745 master]
940319
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:745 master]
940320
+  (0.2ms) ROLLBACK [1:747 master]
940321
+  (0.3ms) ROLLBACK [test:745 master]
940322
+ SQL (14.9ms) DELETE FROM "switchman_shards" [test:745 master]
940323
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:745 master]
940324
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
940325
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940326
+ SQL (0.5ms) DELETE FROM "switchman_shards"
940327
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940328
+  (0.2ms) BEGIN
940329
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940330
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940331
+  (1.1ms) COMMIT
940332
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940333
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940334
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940335
+  (0.1ms) BEGIN
940336
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940337
+  (0.4ms) COMMIT
940338
+  (0.1ms) BEGIN
940339
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940340
+  (0.4ms) COMMIT
940341
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:748 master]
940342
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:748 master]
940343
+  (0.1ms) BEGIN [test:748 master]
940344
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:748 master]
940345
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 748]] [test:748 master]
940346
+  (0.4ms) COMMIT [test:748 master]
940347
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:748 master]
940348
+  (0.1ms) BEGIN [test:748 master]
940349
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 749], ["name", "shard1"]] [test:748 master]
940350
+  (0.3ms) COMMIT [test:748 master]
940351
+  (0.2ms) BEGIN [test:748 master]
940352
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 750], ["name", "shard2"]] [test:748 master]
940353
+  (0.4ms) COMMIT [test:748 master]
940354
+  (0.2ms) BEGIN [test:748 master]
940355
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:748 master]
940356
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 749]] [test:748 master]
940357
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [test:748 master]
940358
+  (0.1ms) BEGIN [1:750 master]
940359
+  (0.1ms) SAVEPOINT active_record_1 [test:748 master]
940360
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-09-08 14:41:06.623207"], ["updated_at", "2015-09-08 14:41:06.623207"]] [test:748 master]
940361
+  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:748 master]
940362
+  (0.2ms) ROLLBACK [1:750 master]
940363
+  (0.2ms) ROLLBACK [test:748 master]
940364
+ SQL (0.5ms) DELETE FROM "switchman_shards" [test:748 master]
940365
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:748 master]
940366
+  (0.6ms) SELECT * FROM unnest(current_schemas(false))
940367
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940368
+ SQL (0.4ms) DELETE FROM "switchman_shards"
940369
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940370
+  (0.1ms) BEGIN
940371
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940372
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940373
+  (6.4ms) COMMIT
940374
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940375
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940376
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940377
+  (0.2ms) BEGIN
940378
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940379
+  (6.1ms) COMMIT
940380
+  (0.2ms) BEGIN
940381
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940382
+  (0.5ms) COMMIT
940383
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:751 master]
940384
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:751 master]
940385
+  (0.2ms) BEGIN [test:751 master]
940386
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:751 master]
940387
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 751]] [test:751 master]
940388
+  (0.3ms) COMMIT [test:751 master]
940389
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:751 master]
940390
+  (0.1ms) BEGIN [test:751 master]
940391
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 752], ["name", "shard1"]] [test:751 master]
940392
+  (0.2ms) COMMIT [test:751 master]
940393
+  (0.1ms) BEGIN [test:751 master]
940394
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 753], ["name", "shard2"]] [test:751 master]
940395
+  (0.3ms) COMMIT [test:751 master]
940396
+  (0.1ms) BEGIN [test:751 master]
940397
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:751 master]
940398
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 752]] [test:751 master]
940399
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 753]] [test:751 master]
940400
+  (0.1ms) BEGIN [1:753 master]
940401
+  (0.2ms) SAVEPOINT active_record_1 [test:751 master]
940402
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-09-08 14:42:30.180327"], ["updated_at", "2015-09-08 14:42:30.180327"]] [test:751 master]
940403
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:751 master]
940404
+  (0.2ms) ROLLBACK [1:753 master]
940405
+  (0.1ms) ROLLBACK [test:751 master]
940406
+ SQL (11.0ms) DELETE FROM "switchman_shards" [test:751 master]
940407
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:751 master]
940408
+  (0.6ms) SELECT * FROM unnest(current_schemas(false))
940409
+ Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940410
+ SQL (0.5ms) DELETE FROM "switchman_shards"
940411
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940412
+  (0.2ms) BEGIN
940413
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940414
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940415
+  (6.2ms) COMMIT
940416
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940417
+ Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940418
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940419
+  (0.2ms) BEGIN
940420
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940421
+  (6.0ms) COMMIT
940422
+  (0.1ms) BEGIN
940423
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940424
+  (5.5ms) COMMIT
940425
+ SQL (11.9ms) DELETE FROM "switchman_shards" [test:754 master]
940426
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:754 master]
940427
+  (0.2ms) BEGIN [test:754 master]
940428
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:754 master]
940429
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 754]] [test:754 master]
940430
+  (0.4ms) COMMIT [test:754 master]
940431
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:754 master]
940432
+  (0.2ms) BEGIN [test:754 master]
940433
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 755], ["name", "shard1"]] [test:754 master]
940434
+  (0.4ms) COMMIT [test:754 master]
940435
+  (0.1ms) BEGIN [test:754 master]
940436
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 756], ["name", "shard2"]] [test:754 master]
940437
+  (0.4ms) COMMIT [test:754 master]
940438
+  (0.1ms) BEGIN [test:754 master]
940439
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:754 master]
940440
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 755]] [test:754 master]
940441
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 756]] [test:754 master]
940442
+  (0.2ms) BEGIN [1:756 master]
940443
+  (0.1ms) SAVEPOINT active_record_1 [test:754 master]
940444
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 [test:754 master]
940445
+  (0.2ms) ROLLBACK [1:756 master]
940446
+  (0.2ms) ROLLBACK [test:754 master]
940447
+ SQL (0.5ms) DELETE FROM "switchman_shards" [test:754 master]
940448
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:754 master]
940449
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
940450
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940451
+ SQL (0.4ms) DELETE FROM "switchman_shards"
940452
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940453
+  (0.1ms) BEGIN
940454
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940455
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940456
+  (7.3ms) COMMIT
940457
+ Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940458
+ Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940459
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940460
+  (0.1ms) BEGIN
940461
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940462
+  (9.9ms) COMMIT
940463
+  (0.2ms) BEGIN
940464
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940465
+  (0.3ms) COMMIT
940466
+ SQL (0.3ms) DELETE FROM "switchman_shards" [test:757 master]
940467
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:757 master]
940468
+  (0.1ms) BEGIN [test:757 master]
940469
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:757 master]
940470
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 757]] [test:757 master]
940471
+  (0.2ms) COMMIT [test:757 master]
940472
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:757 master]
940473
+  (0.1ms) BEGIN [test:757 master]
940474
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 758], ["name", "shard1"]] [test:757 master]
940475
+  (0.3ms) COMMIT [test:757 master]
940476
+  (0.1ms) BEGIN [test:757 master]
940477
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 759], ["name", "shard2"]] [test:757 master]
940478
+  (0.3ms) COMMIT [test:757 master]
940479
+  (0.1ms) BEGIN [test:757 master]
940480
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:757 master]
940481
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 758]] [test:757 master]
940482
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 759]] [test:757 master]
940483
+  (0.1ms) BEGIN [1:759 master]
940484
+  (0.1ms) SAVEPOINT active_record_1 [test:757 master]
940485
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-09-08 15:13:33.458940"], ["updated_at", "2015-09-08 15:13:33.458940"]] [test:757 master]
940486
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:757 master]
940487
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1219]] [test:757 master]
940488
+  (0.1ms) ROLLBACK [1:759 master]
940489
+  (0.1ms) ROLLBACK [test:757 master]
940490
+ SQL (11.4ms) DELETE FROM "switchman_shards" [test:757 master]
940491
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:757 master]
940492
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
940493
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940494
+ SQL (0.4ms) DELETE FROM "switchman_shards"
940495
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940496
+  (0.2ms) BEGIN
940497
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940498
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940499
+  (5.7ms) COMMIT
940500
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940501
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940502
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940503
+  (0.2ms) BEGIN
940504
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940505
+  (6.2ms) COMMIT
940506
+  (0.1ms) BEGIN
940507
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940508
+  (6.1ms) COMMIT
940509
+ SQL (6.2ms) DELETE FROM "switchman_shards" [test:760 master]
940510
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:760 master]
940511
+  (0.2ms) BEGIN [test:760 master]
940512
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:760 master]
940513
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 760]] [test:760 master]
940514
+  (6.3ms) COMMIT [test:760 master]
940515
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:760 master]
940516
+  (0.2ms) BEGIN [test:760 master]
940517
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 761], ["name", "shard1"]] [test:760 master]
940518
+  (0.4ms) COMMIT [test:760 master]
940519
+  (0.1ms) BEGIN [test:760 master]
940520
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 762], ["name", "shard2"]] [test:760 master]
940521
+  (0.4ms) COMMIT [test:760 master]
940522
+  (0.1ms) BEGIN [test:760 master]
940523
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:760 master]
940524
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 761]] [test:760 master]
940525
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 762]] [test:760 master]
940526
+  (0.2ms) BEGIN [1:762 master]
940527
+  (0.2ms) SAVEPOINT active_record_1 [test:760 master]
940528
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-09-08 15:14:37.614619"], ["updated_at", "2015-09-08 15:14:37.614619"]] [test:760 master]
940529
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:760 master]
940530
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1220]] [test:760 master]
940531
+  (0.1ms) ROLLBACK [1:762 master]
940532
+  (0.2ms) ROLLBACK [test:760 master]
940533
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:760 master]
940534
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:760 master]
940535
+  (0.5ms) SELECT * FROM unnest(current_schemas(false))
940536
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940537
+ SQL (0.4ms) DELETE FROM "switchman_shards"
940538
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940539
+  (0.1ms) BEGIN
940540
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940541
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940542
+  (6.3ms) COMMIT
940543
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940544
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940545
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940546
+  (0.2ms) BEGIN
940547
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940548
+  (5.6ms) COMMIT
940549
+  (0.2ms) BEGIN
940550
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940551
+  (5.0ms) COMMIT
940552
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:763 master]
940553
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:763 master]
940554
+  (0.2ms) BEGIN [test:763 master]
940555
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:763 master]
940556
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 763]] [test:763 master]
940557
+  (0.4ms) COMMIT [test:763 master]
940558
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:763 master]
940559
+  (0.1ms) BEGIN [test:763 master]
940560
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 764], ["name", "shard1"]] [test:763 master]
940561
+  (0.3ms) COMMIT [test:763 master]
940562
+  (0.1ms) BEGIN [test:763 master]
940563
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 765], ["name", "shard2"]] [test:763 master]
940564
+  (0.3ms) COMMIT [test:763 master]
940565
+  (0.2ms) BEGIN [test:763 master]
940566
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:763 master]
940567
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 764]] [test:763 master]
940568
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 765]] [test:763 master]
940569
+  (0.1ms) BEGIN [1:765 master]
940570
+  (0.1ms) SAVEPOINT active_record_1 [test:763 master]
940571
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-09-08 15:15:13.526112"], ["updated_at", "2015-09-08 15:15:13.526112"]] [test:763 master]
940572
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:763 master]
940573
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1221]] [test:763 master]
940574
+  (0.2ms) ROLLBACK [1:765 master]
940575
+  (0.2ms) ROLLBACK [test:763 master]
940576
+ SQL (0.5ms) DELETE FROM "switchman_shards" [test:763 master]
940577
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:763 master]
940578
+  (0.7ms) SELECT * FROM unnest(current_schemas(false))
940579
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940580
+ SQL (0.4ms) DELETE FROM "switchman_shards"
940581
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940582
+  (0.2ms) BEGIN
940583
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940584
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940585
+  (6.4ms) COMMIT
940586
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940587
+ Switchman::Shard Load (1.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940588
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940589
+  (0.1ms) BEGIN
940590
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940591
+  (16.0ms) COMMIT
940592
+  (0.2ms) BEGIN
940593
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940594
+  (0.3ms) COMMIT
940595
+ SQL (6.1ms) DELETE FROM "switchman_shards" [test:766 master]
940596
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:766 master]
940597
+  (0.3ms) BEGIN [test:766 master]
940598
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:766 master]
940599
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 766]] [test:766 master]
940600
+  (10.7ms) COMMIT [test:766 master]
940601
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:766 master]
940602
+  (0.2ms) BEGIN [test:766 master]
940603
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 767], ["name", "shard1"]] [test:766 master]
940604
+  (0.5ms) COMMIT [test:766 master]
940605
+  (0.2ms) BEGIN [test:766 master]
940606
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 768], ["name", "shard2"]] [test:766 master]
940607
+  (0.4ms) COMMIT [test:766 master]
940608
+  (0.2ms) BEGIN [test:766 master]
940609
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:766 master]
940610
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 767]] [test:766 master]
940611
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 768]] [test:766 master]
940612
+  (0.1ms) BEGIN [1:768 master]
940613
+  (0.1ms) SAVEPOINT active_record_1 [test:766 master]
940614
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-09-08 15:15:33.045955"], ["updated_at", "2015-09-08 15:15:33.045955"]] [test:766 master]
940615
+  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:766 master]
940616
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1222]] [test:766 master]
940617
+  (0.2ms) ROLLBACK [1:768 master]
940618
+  (0.2ms) ROLLBACK [test:766 master]
940619
+ SQL (10.3ms) DELETE FROM "switchman_shards" [test:766 master]
940620
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:766 master]
940621
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
940622
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940623
+ SQL (0.4ms) DELETE FROM "switchman_shards"
940624
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940625
+  (0.1ms) BEGIN
940626
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940627
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940628
+  (7.6ms) COMMIT
940629
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940630
+ Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940631
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940632
+  (0.1ms) BEGIN
940633
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940634
+  (10.7ms) COMMIT
940635
+  (0.2ms) BEGIN
940636
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940637
+  (0.3ms) COMMIT
940638
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:769 master]
940639
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:769 master]
940640
+  (0.1ms) BEGIN [test:769 master]
940641
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:769 master]
940642
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 769]] [test:769 master]
940643
+  (0.3ms) COMMIT [test:769 master]
940644
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:769 master]
940645
+  (0.1ms) BEGIN [test:769 master]
940646
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 770], ["name", "shard1"]] [test:769 master]
940647
+  (0.3ms) COMMIT [test:769 master]
940648
+  (0.1ms) BEGIN [test:769 master]
940649
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 771], ["name", "shard2"]] [test:769 master]
940650
+  (0.2ms) COMMIT [test:769 master]
940651
+  (0.1ms) BEGIN [test:769 master]
940652
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:769 master]
940653
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 770]] [test:769 master]
940654
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 771]] [test:769 master]
940655
+  (0.1ms) BEGIN [1:771 master]
940656
+  (0.1ms) SAVEPOINT active_record_1 [test:769 master]
940657
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-09-08 15:16:09.313011"], ["updated_at", "2015-09-08 15:16:09.313011"]] [test:769 master]
940658
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:769 master]
940659
+  (0.2ms) ROLLBACK [1:771 master]
940660
+  (0.2ms) ROLLBACK [test:769 master]
940661
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:769 master]
940662
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:769 master]
940663
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
940664
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940665
+ SQL (0.5ms) DELETE FROM "switchman_shards"
940666
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940667
+  (0.2ms) BEGIN
940668
+ Switchman::Shard Exists (0.5ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940669
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940670
+  (5.8ms) COMMIT
940671
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940672
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940673
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940674
+  (0.1ms) BEGIN
940675
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940676
+  (5.9ms) COMMIT
940677
+  (0.1ms) BEGIN
940678
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940679
+  (6.0ms) COMMIT
940680
+ SQL (6.3ms) DELETE FROM "switchman_shards" [test:772 master]
940681
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:772 master]
940682
+  (0.2ms) BEGIN [test:772 master]
940683
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:772 master]
940684
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 772]] [test:772 master]
940685
+  (6.4ms) COMMIT [test:772 master]
940686
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:772 master]
940687
+  (0.2ms) BEGIN [test:772 master]
940688
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 773], ["name", "shard1"]] [test:772 master]
940689
+  (0.5ms) COMMIT [test:772 master]
940690
+  (0.2ms) BEGIN [test:772 master]
940691
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 774], ["name", "shard2"]] [test:772 master]
940692
+  (0.4ms) COMMIT [test:772 master]
940693
+  (0.1ms) BEGIN [test:772 master]
940694
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:772 master]
940695
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 773]] [test:772 master]
940696
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 774]] [test:772 master]
940697
+  (0.1ms) BEGIN [1:774 master]
940698
+  (0.1ms) SAVEPOINT active_record_1 [test:772 master]
940699
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-09-08 15:21:06.931969"], ["updated_at", "2015-09-08 15:21:06.931969"]] [test:772 master]
940700
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:772 master]
940701
+  (0.1ms) ROLLBACK [1:774 master]
940702
+  (0.2ms) ROLLBACK [test:772 master]
940703
+ SQL (0.3ms) DELETE FROM "switchman_shards" [test:772 master]
940704
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:772 master]
940705
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
940706
+ Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940707
+ SQL (0.5ms) DELETE FROM "switchman_shards"
940708
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940709
+  (0.2ms) BEGIN
940710
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940711
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940712
+  (9.1ms) COMMIT
940713
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940714
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940715
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940716
+  (0.1ms) BEGIN
940717
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940718
+  (10.2ms) COMMIT
940719
+  (0.2ms) BEGIN
940720
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940721
+  (0.3ms) COMMIT
940722
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:775 master]
940723
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:775 master]
940724
+  (0.1ms) BEGIN [test:775 master]
940725
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:775 master]
940726
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 775]] [test:775 master]
940727
+  (0.2ms) COMMIT [test:775 master]
940728
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:775 master]
940729
+  (0.1ms) BEGIN [test:775 master]
940730
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 776], ["name", "shard1"]] [test:775 master]
940731
+  (0.3ms) COMMIT [test:775 master]
940732
+  (0.1ms) BEGIN [test:775 master]
940733
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 777], ["name", "shard2"]] [test:775 master]
940734
+  (0.2ms) COMMIT [test:775 master]
940735
+  (0.1ms) BEGIN [test:775 master]
940736
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:775 master]
940737
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 776]] [test:775 master]
940738
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 777]] [test:775 master]
940739
+  (0.1ms) BEGIN [1:777 master]
940740
+  (0.1ms) SAVEPOINT active_record_1 [test:775 master]
940741
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-09-08 15:21:22.066403"], ["updated_at", "2015-09-08 15:21:22.066403"]] [test:775 master]
940742
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:775 master]
940743
+  (0.3ms) ROLLBACK [1:777 master]
940744
+  (0.2ms) ROLLBACK [test:775 master]
940745
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:775 master]
940746
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:775 master]
940747
+  (0.3ms) SELECT * FROM unnest(current_schemas(false))
940748
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940749
+ SQL (0.6ms) DELETE FROM "switchman_shards"
940750
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940751
+  (0.1ms) BEGIN
940752
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940753
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940754
+  (6.5ms) COMMIT
940755
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940756
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940757
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940758
+  (0.1ms) BEGIN
940759
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940760
+  (6.3ms) COMMIT
940761
+  (0.1ms) BEGIN
940762
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940763
+  (5.9ms) COMMIT
940764
+ SQL (6.2ms) DELETE FROM "switchman_shards" [test:778 master]
940765
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:778 master]
940766
+  (0.2ms) BEGIN [test:778 master]
940767
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:778 master]
940768
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 778]] [test:778 master]
940769
+  (6.3ms) COMMIT [test:778 master]
940770
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:778 master]
940771
+  (0.1ms) BEGIN [test:778 master]
940772
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 779], ["name", "shard1"]] [test:778 master]
940773
+  (0.4ms) COMMIT [test:778 master]
940774
+  (0.1ms) BEGIN [test:778 master]
940775
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 780], ["name", "shard2"]] [test:778 master]
940776
+  (0.3ms) COMMIT [test:778 master]
940777
+  (0.2ms) BEGIN [test:778 master]
940778
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:778 master]
940779
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 779]] [test:778 master]
940780
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 780]] [test:778 master]
940781
+  (0.2ms) BEGIN [1:780 master]
940782
+  (0.1ms) SAVEPOINT active_record_1 [test:778 master]
940783
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-09-08 15:23:12.435293"], ["updated_at", "2015-09-08 15:23:12.435293"]] [test:778 master]
940784
+  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:778 master]
940785
+  (0.2ms) ROLLBACK [1:780 master]
940786
+  (0.2ms) ROLLBACK [test:778 master]
940787
+ SQL (0.3ms) DELETE FROM "switchman_shards" [test:778 master]
940788
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:778 master]
940789
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
940790
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940791
+ SQL (0.5ms) DELETE FROM "switchman_shards"
940792
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940793
+  (0.1ms) BEGIN
940794
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940795
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940796
+  (6.1ms) COMMIT
940797
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940798
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940799
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940800
+  (0.2ms) BEGIN
940801
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940802
+  (6.3ms) COMMIT
940803
+  (0.2ms) BEGIN
940804
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940805
+  (0.5ms) COMMIT
940806
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:781 master]
940807
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:781 master]
940808
+  (0.1ms) BEGIN [test:781 master]
940809
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:781 master]
940810
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 781]] [test:781 master]
940811
+  (0.3ms) COMMIT [test:781 master]
940812
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:781 master]
940813
+  (0.1ms) BEGIN [test:781 master]
940814
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 782], ["name", "shard1"]] [test:781 master]
940815
+  (0.3ms) COMMIT [test:781 master]
940816
+  (0.1ms) BEGIN [test:781 master]
940817
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 783], ["name", "shard2"]] [test:781 master]
940818
+  (0.3ms) COMMIT [test:781 master]
940819
+  (0.1ms) BEGIN [test:781 master]
940820
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:781 master]
940821
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 782]] [test:781 master]
940822
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 783]] [test:781 master]
940823
+  (0.2ms) BEGIN [1:783 master]
940824
+  (0.1ms) ROLLBACK [1:783 master]
940825
+  (0.2ms) ROLLBACK [test:781 master]
940826
+ SQL (0.5ms) DELETE FROM "switchman_shards" [test:781 master]
940827
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:781 master]
940828
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
940829
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940830
+ SQL (0.5ms) DELETE FROM "switchman_shards"
940831
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940832
+  (0.1ms) BEGIN
940833
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940834
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940835
+  (0.9ms) COMMIT
940836
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940837
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940838
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940839
+  (0.1ms) BEGIN
940840
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940841
+  (0.4ms) COMMIT
940842
+  (0.1ms) BEGIN
940843
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940844
+  (0.4ms) COMMIT
940845
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:784 master]
940846
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:784 master]
940847
+  (0.1ms) BEGIN [test:784 master]
940848
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:784 master]
940849
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 784]] [test:784 master]
940850
+  (0.3ms) COMMIT [test:784 master]
940851
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:784 master]
940852
+  (0.1ms) BEGIN [test:784 master]
940853
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 785], ["name", "shard1"]] [test:784 master]
940854
+  (0.3ms) COMMIT [test:784 master]
940855
+  (0.1ms) BEGIN [test:784 master]
940856
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 786], ["name", "shard2"]] [test:784 master]
940857
+  (0.2ms) COMMIT [test:784 master]
940858
+  (0.1ms) BEGIN [test:784 master]
940859
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:784 master]
940860
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 785]] [test:784 master]
940861
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 786]] [test:784 master]
940862
+  (0.1ms) BEGIN [1:786 master]
940863
+  (0.2ms) SAVEPOINT active_record_1 [test:784 master]
940864
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-09-08 15:24:22.816356"], ["updated_at", "2015-09-08 15:24:22.816356"]] [test:784 master]
940865
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:784 master]
940866
+  (0.2ms) ROLLBACK [1:786 master]
940867
+  (0.2ms) ROLLBACK [test:784 master]
940868
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:784 master]
940869
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:784 master]
940870
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
940871
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940872
+ SQL (0.4ms) DELETE FROM "switchman_shards"
940873
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940874
+  (0.2ms) BEGIN
940875
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940876
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940877
+  (6.0ms) COMMIT
940878
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940879
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940880
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940881
+  (0.2ms) BEGIN
940882
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940883
+  (0.3ms) COMMIT
940884
+  (0.1ms) BEGIN
940885
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940886
+  (0.4ms) COMMIT
940887
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:787 master]
940888
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:787 master]
940889
+  (0.1ms) BEGIN [test:787 master]
940890
+ Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:787 master]
940891
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 787]] [test:787 master]
940892
+  (0.3ms) COMMIT [test:787 master]
940893
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:787 master]
940894
+  (0.1ms) BEGIN [test:787 master]
940895
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 788], ["name", "shard1"]] [test:787 master]
940896
+  (0.3ms) COMMIT [test:787 master]
940897
+  (0.1ms) BEGIN [test:787 master]
940898
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 789], ["name", "shard2"]] [test:787 master]
940899
+  (0.3ms) COMMIT [test:787 master]
940900
+  (0.1ms) BEGIN [test:787 master]
940901
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:787 master]
940902
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 788]] [test:787 master]
940903
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 789]] [test:787 master]
940904
+  (0.2ms) BEGIN [1:789 master]
940905
+  (0.1ms) ROLLBACK [1:789 master]
940906
+  (0.1ms) ROLLBACK [test:787 master]
940907
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:787 master]
940908
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:787 master]
940909
+  (0.3ms) SELECT * FROM unnest(current_schemas(false))
940910
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940911
+ SQL (0.4ms) DELETE FROM "switchman_shards"
940912
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940913
+  (0.2ms) BEGIN
940914
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940915
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940916
+  (0.8ms) COMMIT
940917
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940918
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940919
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940920
+  (0.1ms) BEGIN
940921
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940922
+  (0.4ms) COMMIT
940923
+  (0.1ms) BEGIN
940924
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940925
+  (0.3ms) COMMIT
940926
+ SQL (0.3ms) DELETE FROM "switchman_shards" [test:790 master]
940927
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:790 master]
940928
+  (0.1ms) BEGIN [test:790 master]
940929
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:790 master]
940930
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 790]] [test:790 master]
940931
+  (0.3ms) COMMIT [test:790 master]
940932
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:790 master]
940933
+  (0.1ms) BEGIN [test:790 master]
940934
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 791], ["name", "shard1"]] [test:790 master]
940935
+  (0.3ms) COMMIT [test:790 master]
940936
+  (0.1ms) BEGIN [test:790 master]
940937
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 792], ["name", "shard2"]] [test:790 master]
940938
+  (0.3ms) COMMIT [test:790 master]
940939
+  (0.1ms) BEGIN [test:790 master]
940940
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:790 master]
940941
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 791]] [test:790 master]
940942
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 792]] [test:790 master]
940943
+  (0.1ms) BEGIN [1:792 master]
940944
+ SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" [test:790 master]
940945
+ PG::NotNullViolation: ERROR: null value in column "created_at" violates not-null constraint
940946
+ DETAIL: Failing row contains (1228, null, null, null, null, null, null).
940947
+ : INSERT INTO "users" DEFAULT VALUES RETURNING "id"
940948
+  (0.1ms) ROLLBACK [1:792 master]
940949
+  (0.1ms) ROLLBACK [test:790 master]
940950
+ SQL (0.3ms) DELETE FROM "switchman_shards" [test:790 master]
940951
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:790 master]
940952
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
940953
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940954
+ SQL (0.4ms) DELETE FROM "switchman_shards"
940955
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940956
+  (0.2ms) BEGIN
940957
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940958
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940959
+  (7.2ms) COMMIT
940960
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940961
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940962
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
940963
+  (0.1ms) BEGIN
940964
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
940965
+  (11.0ms) COMMIT
940966
+  (0.1ms) BEGIN
940967
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
940968
+  (0.3ms) COMMIT
940969
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:793 master]
940970
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:793 master]
940971
+  (0.1ms) BEGIN [test:793 master]
940972
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:793 master]
940973
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 793]] [test:793 master]
940974
+  (0.3ms) COMMIT [test:793 master]
940975
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:793 master]
940976
+  (0.1ms) BEGIN [test:793 master]
940977
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 794], ["name", "shard1"]] [test:793 master]
940978
+  (0.3ms) COMMIT [test:793 master]
940979
+  (0.1ms) BEGIN [test:793 master]
940980
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 795], ["name", "shard2"]] [test:793 master]
940981
+  (0.3ms) COMMIT [test:793 master]
940982
+  (0.1ms) BEGIN [test:793 master]
940983
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:793 master]
940984
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 794]] [test:793 master]
940985
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 795]] [test:793 master]
940986
+  (0.1ms) BEGIN [1:795 master]
940987
+  (0.1ms) ROLLBACK [1:795 master]
940988
+  (0.1ms) ROLLBACK [test:793 master]
940989
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:793 master]
940990
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:793 master]
940991
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
940992
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940993
+ SQL (0.6ms) DELETE FROM "switchman_shards"
940994
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
940995
+  (0.2ms) BEGIN
940996
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
940997
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
940998
+  (6.1ms) COMMIT
940999
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941000
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941001
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
941002
+  (0.1ms) BEGIN
941003
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
941004
+  (6.2ms) COMMIT
941005
+  (0.2ms) BEGIN
941006
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
941007
+  (5.8ms) COMMIT
941008
+ SQL (5.6ms) DELETE FROM "switchman_shards" [test:796 master]
941009
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:796 master]
941010
+  (0.1ms) BEGIN [test:796 master]
941011
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:796 master]
941012
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 796]] [test:796 master]
941013
+  (0.4ms) COMMIT [test:796 master]
941014
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:796 master]
941015
+  (0.1ms) BEGIN [test:796 master]
941016
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 797], ["name", "shard1"]] [test:796 master]
941017
+  (0.3ms) COMMIT [test:796 master]
941018
+  (0.2ms) BEGIN [test:796 master]
941019
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 798], ["name", "shard2"]] [test:796 master]
941020
+  (0.3ms) COMMIT [test:796 master]
941021
+  (0.1ms) BEGIN [test:796 master]
941022
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:796 master]
941023
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 797]] [test:796 master]
941024
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [test:796 master]
941025
+  (0.1ms) BEGIN [1:798 master]
941026
+  (0.5ms) INSERT INTO users(created_at, updated_at) VALUES('2014-07-07', '2014-07-07') [test:796 master]
941027
+ User Load (0.3ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 [test:796 master]
941028
+  (0.2ms) ROLLBACK [1:798 master]
941029
+  (0.2ms) ROLLBACK [test:796 master]
941030
+ SQL (0.3ms) DELETE FROM "switchman_shards" [test:796 master]
941031
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:796 master]
941032
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
941033
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941034
+ SQL (0.6ms) DELETE FROM "switchman_shards"
941035
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941036
+  (0.2ms) BEGIN
941037
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
941038
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
941039
+  (6.2ms) COMMIT
941040
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941041
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941042
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
941043
+  (0.1ms) BEGIN
941044
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
941045
+  (6.0ms) COMMIT
941046
+  (0.2ms) BEGIN
941047
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
941048
+  (6.2ms) COMMIT
941049
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:799 master]
941050
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:799 master]
941051
+  (0.1ms) BEGIN [test:799 master]
941052
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:799 master]
941053
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 799]] [test:799 master]
941054
+  (0.3ms) COMMIT [test:799 master]
941055
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:799 master]
941056
+  (0.1ms) BEGIN [test:799 master]
941057
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 800], ["name", "shard1"]] [test:799 master]
941058
+  (0.3ms) COMMIT [test:799 master]
941059
+  (0.1ms) BEGIN [test:799 master]
941060
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 801], ["name", "shard2"]] [test:799 master]
941061
+  (0.3ms) COMMIT [test:799 master]
941062
+  (0.1ms) BEGIN [test:799 master]
941063
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:799 master]
941064
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 800]] [test:799 master]
941065
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 801]] [test:799 master]
941066
+  (0.1ms) BEGIN [1:801 master]
941067
+  (0.4ms) INSERT INTO users(created_at, updated_at) VALUES('2014-07-07', '2014-07-07') [test:799 master]
941068
+ User Load (0.3ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 [test:799 master]
941069
+  (0.4ms) ROLLBACK [1:801 master]
941070
+  (0.2ms) ROLLBACK [test:799 master]
941071
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:799 master]
941072
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:799 master]
941073
+  (1.5ms) SELECT * FROM unnest(current_schemas(false))
941074
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941075
+ SQL (0.4ms) DELETE FROM "switchman_shards"
941076
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941077
+  (0.1ms) BEGIN
941078
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
941079
+ SQL (0.6ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]
941080
+  (11.8ms) COMMIT
941081
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941082
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941083
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
941084
+  (0.1ms) BEGIN
941085
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
941086
+  (10.9ms) COMMIT
941087
+  (0.1ms) BEGIN
941088
+ SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
941089
+  (8.1ms) COMMIT
941090
+ SQL (0.5ms) DELETE FROM "switchman_shards" [test:802 master]
941091
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:802 master]
941092
+  (0.2ms) BEGIN [test:802 master]
941093
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:802 master]
941094
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 802]] [test:802 master]
941095
+  (0.3ms) COMMIT [test:802 master]
941096
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:802 master]
941097
+  (0.1ms) BEGIN [test:802 master]
941098
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 803], ["name", "shard1"]] [test:802 master]
941099
+  (0.3ms) COMMIT [test:802 master]
941100
+  (0.1ms) BEGIN [test:802 master]
941101
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 804], ["name", "shard2"]] [test:802 master]
941102
+  (0.3ms) COMMIT [test:802 master]
941103
+  (0.1ms) BEGIN [test:802 master]
941104
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:802 master]
941105
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 803]] [test:802 master]
941106
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 804]] [test:802 master]
941107
+  (0.1ms) BEGIN [1:804 master]
941108
+  (0.6ms) INSERT INTO users(created_at, updated_at) VALUES('2014-07-07', '2014-07-07') [test:802 master]
941109
+ User Load (0.4ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 [test:802 master]
941110
+  (0.2ms) ROLLBACK [1:804 master]
941111
+  (0.2ms) ROLLBACK [test:802 master]
941112
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:802 master]
941113
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:802 master]
941114
+  (1.9ms) SELECT * FROM unnest(current_schemas(false))
941115
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941116
+ SQL (0.4ms) DELETE FROM "switchman_shards"
941117
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941118
+  (0.1ms) BEGIN
941119
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
941120
+ SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]
941121
+  (5.5ms) COMMIT
941122
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941123
+ Switchman::Shard Load (1.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941124
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
941125
+  (0.6ms) BEGIN
941126
+ SQL (0.5ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
941127
+  (9.9ms) COMMIT
941128
+  (0.3ms) BEGIN
941129
+ SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
941130
+  (0.3ms) COMMIT
941131
+ SQL (0.5ms) DELETE FROM "switchman_shards" [test:805 master]
941132
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:805 master]
941133
+  (0.1ms) BEGIN [test:805 master]
941134
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:805 master]
941135
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 805]] [test:805 master]
941136
+  (0.2ms) COMMIT [test:805 master]
941137
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:805 master]
941138
+  (0.1ms) BEGIN [test:805 master]
941139
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 806], ["name", "shard1"]] [test:805 master]
941140
+  (0.3ms) COMMIT [test:805 master]
941141
+  (0.1ms) BEGIN [test:805 master]
941142
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 807], ["name", "shard2"]] [test:805 master]
941143
+  (0.2ms) COMMIT [test:805 master]
941144
+  (0.1ms) BEGIN [test:805 master]
941145
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:805 master]
941146
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 806]] [test:805 master]
941147
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 807]] [test:805 master]
941148
+  (0.1ms) BEGIN [1:807 master]
941149
+  (0.4ms) INSERT INTO users(created_at, updated_at) VALUES('2014-07-07', '2014-07-07') [test:805 master]
941150
+ User Load (0.4ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 [test:805 master]
941151
+  (0.2ms) ROLLBACK [1:807 master]
941152
+  (0.2ms) ROLLBACK [test:805 master]
941153
+ SQL (9.9ms) DELETE FROM "switchman_shards" [test:805 master]
941154
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:805 master]
941155
+  (1.6ms) SELECT * FROM unnest(current_schemas(false))
941156
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941157
+ SQL (0.4ms) DELETE FROM "switchman_shards"
941158
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941159
+  (0.2ms) BEGIN
941160
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
941161
+ SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]
941162
+  (6.1ms) COMMIT
941163
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941164
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941165
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
941166
+  (0.1ms) BEGIN
941167
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
941168
+  (5.5ms) COMMIT
941169
+  (0.1ms) BEGIN
941170
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
941171
+  (4.4ms) COMMIT
941172
+ SQL (0.3ms) DELETE FROM "switchman_shards" [test:808 master]
941173
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:808 master]
941174
+  (0.1ms) BEGIN [test:808 master]
941175
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:808 master]
941176
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 808]] [test:808 master]
941177
+  (0.4ms) COMMIT [test:808 master]
941178
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:808 master]
941179
+  (0.1ms) BEGIN [test:808 master]
941180
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 809], ["name", "shard1"]] [test:808 master]
941181
+  (0.3ms) COMMIT [test:808 master]
941182
+  (0.1ms) BEGIN [test:808 master]
941183
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 810], ["name", "shard2"]] [test:808 master]
941184
+  (0.3ms) COMMIT [test:808 master]
941185
+  (0.1ms) BEGIN [test:808 master]
941186
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:808 master]
941187
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 809]] [test:808 master]
941188
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 810]] [test:808 master]
941189
+  (0.1ms) BEGIN [1:810 master]
941190
+  (0.3ms) INSERT INTO users(created_at, updated_at) VALUES('2014-07-07', '2014-07-07') [test:808 master]
941191
+ User Load (0.7ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 [test:808 master]
941192
+  (0.4ms) ROLLBACK [1:810 master]
941193
+  (0.4ms) ROLLBACK [test:808 master]
941194
+ SQL (0.6ms) DELETE FROM "switchman_shards" [test:808 master]
941195
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:808 master]
941196
+  (1.3ms) SELECT * FROM unnest(current_schemas(false))
941197
+ Switchman::Shard Load (1.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941198
+ SQL (0.4ms) DELETE FROM "switchman_shards"
941199
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941200
+  (0.2ms) BEGIN
941201
+ Switchman::Shard Exists (0.5ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
941202
+ SQL (0.7ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]
941203
+  (5.6ms) COMMIT
941204
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941205
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941206
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
941207
+  (0.1ms) BEGIN
941208
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
941209
+  (6.0ms) COMMIT
941210
+  (0.2ms) BEGIN
941211
+ SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
941212
+  (5.7ms) COMMIT
941213
+ SQL (6.0ms) DELETE FROM "switchman_shards" [test:811 master]
941214
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:811 master]
941215
+  (0.1ms) BEGIN [test:811 master]
941216
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:811 master]
941217
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 811]] [test:811 master]
941218
+  (5.9ms) COMMIT [test:811 master]
941219
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:811 master]
941220
+  (0.1ms) BEGIN [test:811 master]
941221
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 812], ["name", "shard1"]] [test:811 master]
941222
+  (0.3ms) COMMIT [test:811 master]
941223
+  (0.1ms) BEGIN [test:811 master]
941224
+ SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 813], ["name", "shard2"]] [test:811 master]
941225
+  (0.3ms) COMMIT [test:811 master]
941226
+  (0.1ms) BEGIN [test:811 master]
941227
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:811 master]
941228
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 812]] [test:811 master]
941229
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 813]] [test:811 master]
941230
+  (0.1ms) BEGIN [1:813 master]
941231
+  (0.3ms) INSERT INTO users(created_at, updated_at) VALUES('2014-07-07', '2014-07-07') [test:811 master]
941232
+ User Load (0.9ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 [test:811 master]
941233
+  (0.4ms) ROLLBACK [1:813 master]
941234
+  (0.4ms) ROLLBACK [test:811 master]
941235
+ SQL (0.7ms) DELETE FROM "switchman_shards" [test:811 master]
941236
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:811 master]
941237
+  (1.5ms) SELECT * FROM unnest(current_schemas(false))
941238
+ Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941239
+ SQL (0.6ms) DELETE FROM "switchman_shards"
941240
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941241
+  (0.2ms) BEGIN
941242
+ Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
941243
+ SQL (0.7ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]
941244
+  (6.4ms) COMMIT
941245
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941246
+ Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
941247
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1
941248
+  (0.2ms) BEGIN
941249
+ SQL (0.5ms) INSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id" [["name", "shard1"]]
941250
+  (9.1ms) COMMIT
941251
+  (0.2ms) BEGIN
941252
+ SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
941253
+  (5.8ms) COMMIT
941254
+ SQL (0.4ms) DELETE FROM "switchman_shards" [test:814 master]
941255
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:814 master]
941256
+  (0.1ms) BEGIN [test:814 master]
941257
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:814 master]
941258
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 814]] [test:814 master]
941259
+  (0.4ms) COMMIT [test:814 master]
941260
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:814 master]
941261
+  (0.1ms) BEGIN [test:814 master]
941262
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 815], ["name", "shard1"]] [test:814 master]
941263
+  (0.3ms) COMMIT [test:814 master]
941264
+  (0.1ms) BEGIN [test:814 master]
941265
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 816], ["name", "shard2"]] [test:814 master]
941266
+  (0.3ms) COMMIT [test:814 master]
941267
+  (0.1ms) BEGIN [test:814 master]
941268
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:814 master]
941269
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 815]] [test:814 master]
941270
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 816]] [test:814 master]
941271
+  (0.2ms) BEGIN [1:816 master]
941272
+  (1.0ms) INSERT INTO users(created_at, updated_at) VALUES('2014-07-07', '2014-07-07') [test:814 master]
941273
+ User Load (0.6ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 [test:814 master]