switchman 1.2.12 → 1.2.13

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: c2e8747b77d09d38c1f00f984c7e85d6560515b3
4
- data.tar.gz: d9bfe61f3a1a7a0a22a1cb5cbffa33ef751b3b7e
3
+ metadata.gz: c42fe24a528e52a66863dec71ddedea418db67ef
4
+ data.tar.gz: 7bfb9e2f497bc3aa2da526c3dc935062e18de4ce
5
5
  SHA512:
6
- metadata.gz: 05bf84c6e45ed9530202a4f5ce6ba058326cbd7fae15c8ab3d8c4c5d50328d93df41e9027e61b4591856d2452537f82b96de589460a8ac4e43d8916a0cb9d2fc
7
- data.tar.gz: 6bcab454b76a9c373708222463414959c4a14c08946d94c1aa7c1d4a9d8e72f5027ae1fdc7ea86fad20b15f3bdf0f35e7cf5266023d97c82516ec03600b6c381
6
+ metadata.gz: caae1ea35140146f3c38105eea77d6aaef1a519b76f4f7fac844f3d783bbf9b8b570950228368334c2717df6d69af2bb19e48f671f16ae0ee1373c2335b27db4
7
+ data.tar.gz: 2da783ea1de3ebbae72703b85792ce607181edf97ef7b84928c47f649b1ddb6c72b95aa584be6ec723fc470e8a7a295d05e09d2967fbb7e4764b33f0fb313192
@@ -95,6 +95,8 @@ module Switchman
95
95
  config = default_pool.spec.instance_variable_get(:@config)
96
96
  if config[active_shackles_environment].is_a?(Hash)
97
97
  config = config.merge(config[active_shackles_environment])
98
+ elsif config[active_shackles_environment].is_a?(Array)
99
+ config = config.merge(config[active_shackles_environment].first)
98
100
  else
99
101
  config = config.dup
100
102
  end
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.2.12"
2
+ VERSION = "1.2.13"
3
3
  end
@@ -106291,3 +106291,814 @@ LINE 1: SELECT COUNT(*) FROM "users"
106291
106291
   (0.2ms) BEGIN
106292
106292
  SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 799]]
106293
106293
   (0.1ms) COMMIT
106294
+  (2.2ms) SELECT * FROM unnest(current_schemas(false))
106295
+ Switchman::Shard Load (28.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
106296
+ SQL (0.4ms) DELETE FROM "switchman_shards"
106297
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
106298
+  (0.1ms) BEGIN
106299
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
106300
+ SQL (31.7ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
106301
+  (0.3ms) COMMIT
106302
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
106303
+ Switchman::Shard Load (1.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1
106304
+  (0.1ms) BEGIN
106305
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]
106306
+  (1.6ms) CREATE SCHEMA switchman_test_shard_821 [shard 821 deploy]
106307
+  (40.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 821 deploy]
106308
+  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 821 deploy]
106309
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 821 deploy]
106310
+ Migrating to CreateUsers (20130403132607)
106311
+  (36.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 821 deploy]
106312
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 821 deploy]
106313
+ Migrating to CreateAppendages (20130411202442)
106314
+  (31.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 821 deploy]
106315
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 821 deploy]
106316
+ Migrating to CreateMirrorUsers (20130411202551)
106317
+  (17.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 821 deploy]
106318
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 821 deploy]
106319
+ Migrating to CreateDigits (20131022202028)
106320
+  (33.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 821 deploy]
106321
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 821 deploy]
106322
+ Migrating to CreateFeatures (20131206172923)
106323
+  (18.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 821 deploy]
106324
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 821 deploy]
106325
+ Migrating to AddParentIdToUsers (20140123154135)
106326
+  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 821 deploy]
106327
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 821 deploy]
106328
+ Migrating to CreateRoots (20140219183820)
106329
+  (18.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 821 deploy]
106330
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 821 deploy]
106331
+ SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 821 [["name", "switchman_test_shard_821"]] [shard 820 master]
106332
+  (1.2ms) COMMIT [shard 820 master]
106333
+ Switchman::Shard Load (1.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master]
106334
+  (0.1ms) BEGIN [shard 820 master]
106335
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 820 master]
106336
+  (0.4ms) COMMIT [shard 820 master]
106337
+  (0.6ms) CREATE SCHEMA switchman_test_shard_822 [shard 822 deploy]
106338
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 822 deploy]
106339
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 822 deploy]
106340
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 822 deploy]
106341
+ Migrating to CreateUsers (20130403132607)
106342
+  (0.1ms) BEGIN [shard 822 deploy]
106343
+  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy]
106344
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 822 deploy]
106345
+  (0.3ms) COMMIT [shard 822 deploy]
106346
+ Migrating to CreateAppendages (20130411202442)
106347
+  (0.1ms) BEGIN [shard 822 deploy]
106348
+  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy]
106349
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 822 deploy]
106350
+  (0.4ms) COMMIT [shard 822 deploy]
106351
+ Migrating to CreateMirrorUsers (20130411202551)
106352
+  (0.1ms) BEGIN [shard 822 deploy]
106353
+  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy]
106354
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 822 deploy]
106355
+  (0.3ms) COMMIT [shard 822 deploy]
106356
+ Migrating to CreateDigits (20131022202028)
106357
+  (0.2ms) BEGIN [shard 822 deploy]
106358
+  (3.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy]
106359
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 822 deploy]
106360
+  (0.4ms) COMMIT [shard 822 deploy]
106361
+ Migrating to CreateFeatures (20131206172923)
106362
+  (0.1ms) BEGIN [shard 822 deploy]
106363
+  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy]
106364
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 822 deploy]
106365
+  (0.4ms) COMMIT [shard 822 deploy]
106366
+ Migrating to AddParentIdToUsers (20140123154135)
106367
+  (0.1ms) BEGIN [shard 822 deploy]
106368
+  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 822 deploy]
106369
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 822 deploy]
106370
+  (0.3ms) COMMIT [shard 822 deploy]
106371
+ Migrating to CreateRoots (20140219183820)
106372
+  (0.1ms) BEGIN [shard 822 deploy]
106373
+  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy]
106374
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 822 deploy]
106375
+  (0.3ms) COMMIT [shard 822 deploy]
106376
+  (0.1ms) BEGIN [shard 820 master]
106377
+ SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 822 [["name", "switchman_test_shard_822"]] [shard 820 master]
106378
+  (0.3ms) COMMIT [shard 820 master]
106379
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 820 master]
106380
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master]
106381
+  (0.1ms) BEGIN [shard 820 master]
106382
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 820 master]
106383
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 820]] [shard 820 master]
106384
+  (0.3ms) COMMIT [shard 820 master]
106385
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master]
106386
+  (0.1ms) BEGIN [shard 820 master]
106387
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 821], ["name", "switchman_test_shard_821"]] [shard 820 master]
106388
+  (0.3ms) COMMIT [shard 820 master]
106389
+  (0.1ms) BEGIN [shard 820 master]
106390
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 822], ["name", "switchman_test_shard_822"]] [shard 820 master]
106391
+  (0.3ms) COMMIT [shard 820 master]
106392
+  (0.1ms) BEGIN [shard 820 master]
106393
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master]
106394
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 821]] [shard 820 master]
106395
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 822]] [shard 820 master]
106396
+  (0.1ms) BEGIN [shard 822 master]
106397
+  (0.1ms) SAVEPOINT active_record_1 [shard 820 master]
106398
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 820 master]
106399
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 820 master]
106400
+  (0.1ms) SAVEPOINT active_record_1 [shard 820 master]
106401
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 820 master]
106402
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 820 master]
106403
+  (0.2ms) ROLLBACK [shard 822 master]
106404
+  (0.1ms) ROLLBACK [shard 820 master]
106405
+  (0.1ms) BEGIN [shard 820 master]
106406
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master]
106407
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 821]] [shard 820 master]
106408
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 822]] [shard 820 master]
106409
+  (0.1ms) BEGIN [shard 822 master]
106410
+  (0.2ms) ROLLBACK [shard 822 master]
106411
+  (0.2ms) ROLLBACK [shard 820 master]
106412
+  (0.1ms) BEGIN [shard 820 master]
106413
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master]
106414
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 821]] [shard 820 master]
106415
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 822]] [shard 820 master]
106416
+  (0.1ms) BEGIN [shard 822 master]
106417
+  (0.1ms) ROLLBACK [shard 822 master]
106418
+  (0.1ms) ROLLBACK [shard 820 master]
106419
+ SQL (19.8ms) DELETE FROM "switchman_shards" [shard 820 master]
106420
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master]
106421
+  (7.9ms) DROP SCHEMA switchman_test_shard_821 CASCADE [shard 821 deploy]
106422
+  (0.1ms) BEGIN
106423
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 821]]
106424
+  (0.1ms) COMMIT
106425
+  (4.7ms) DROP SCHEMA switchman_test_shard_822 CASCADE [shard 822 deploy]
106426
+  (0.2ms) BEGIN
106427
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 822]]
106428
+  (0.1ms) COMMIT
106429
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
106430
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
106431
+ SQL (0.8ms) DELETE FROM "switchman_shards"
106432
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
106433
+  (0.1ms) BEGIN
106434
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
106435
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
106436
+  (3.5ms) COMMIT
106437
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
106438
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1
106439
+  (0.1ms) BEGIN
106440
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]
106441
+  (0.3ms) CREATE SCHEMA switchman_test_shard_826 [shard 826 deploy]
106442
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 826 deploy]
106443
+  (8.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 826 deploy]
106444
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 826 deploy]
106445
+ Migrating to CreateUsers (20130403132607)
106446
+  (4.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 826 deploy]
106447
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 826 deploy]
106448
+ Migrating to CreateAppendages (20130411202442)
106449
+  (4.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 826 deploy]
106450
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 826 deploy]
106451
+ Migrating to CreateMirrorUsers (20130411202551)
106452
+  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 826 deploy]
106453
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 826 deploy]
106454
+ Migrating to CreateDigits (20131022202028)
106455
+  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 826 deploy]
106456
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 826 deploy]
106457
+ Migrating to CreateFeatures (20131206172923)
106458
+  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 826 deploy]
106459
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 826 deploy]
106460
+ Migrating to AddParentIdToUsers (20140123154135)
106461
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 826 deploy]
106462
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 826 deploy]
106463
+ Migrating to CreateRoots (20140219183820)
106464
+  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 826 deploy]
106465
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 826 deploy]
106466
+ SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 826 [["name", "switchman_test_shard_826"]] [shard 825 master]
106467
+  (0.8ms) COMMIT [shard 825 master]
106468
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master]
106469
+  (0.1ms) BEGIN [shard 825 master]
106470
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 825 master]
106471
+  (0.2ms) COMMIT [shard 825 master]
106472
+  (0.6ms) CREATE SCHEMA switchman_test_shard_827 [shard 827 deploy]
106473
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 827 deploy]
106474
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 827 deploy]
106475
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 827 deploy]
106476
+ Migrating to CreateUsers (20130403132607)
106477
+  (0.1ms) BEGIN [shard 827 deploy]
106478
+  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy]
106479
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 827 deploy]
106480
+  (0.3ms) COMMIT [shard 827 deploy]
106481
+ Migrating to CreateAppendages (20130411202442)
106482
+  (0.1ms) BEGIN [shard 827 deploy]
106483
+  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy]
106484
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 827 deploy]
106485
+  (0.3ms) COMMIT [shard 827 deploy]
106486
+ Migrating to CreateMirrorUsers (20130411202551)
106487
+  (0.1ms) BEGIN [shard 827 deploy]
106488
+  (2.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy]
106489
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 827 deploy]
106490
+  (0.3ms) COMMIT [shard 827 deploy]
106491
+ Migrating to CreateDigits (20131022202028)
106492
+  (0.1ms) BEGIN [shard 827 deploy]
106493
+  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy]
106494
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 827 deploy]
106495
+  (0.3ms) COMMIT [shard 827 deploy]
106496
+ Migrating to CreateFeatures (20131206172923)
106497
+  (0.1ms) BEGIN [shard 827 deploy]
106498
+  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy]
106499
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 827 deploy]
106500
+  (0.3ms) COMMIT [shard 827 deploy]
106501
+ Migrating to AddParentIdToUsers (20140123154135)
106502
+  (0.1ms) BEGIN [shard 827 deploy]
106503
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 827 deploy]
106504
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 827 deploy]
106505
+  (0.3ms) COMMIT [shard 827 deploy]
106506
+ Migrating to CreateRoots (20140219183820)
106507
+  (0.1ms) BEGIN [shard 827 deploy]
106508
+  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy]
106509
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 827 deploy]
106510
+  (0.3ms) COMMIT [shard 827 deploy]
106511
+  (0.1ms) BEGIN [shard 825 master]
106512
+ SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 827 [["name", "switchman_test_shard_827"]] [shard 825 master]
106513
+  (0.3ms) COMMIT [shard 825 master]
106514
+ SQL (0.4ms) DELETE FROM "switchman_shards" [shard 825 master]
106515
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master]
106516
+  (0.1ms) BEGIN [shard 825 master]
106517
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 825 master]
106518
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 825]] [shard 825 master]
106519
+  (0.3ms) COMMIT [shard 825 master]
106520
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master]
106521
+  (0.1ms) BEGIN [shard 825 master]
106522
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 826], ["name", "switchman_test_shard_826"]] [shard 825 master]
106523
+  (0.2ms) COMMIT [shard 825 master]
106524
+  (0.1ms) BEGIN [shard 825 master]
106525
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 827], ["name", "switchman_test_shard_827"]] [shard 825 master]
106526
+  (0.3ms) COMMIT [shard 825 master]
106527
+  (0.1ms) BEGIN [shard 825 master]
106528
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master]
106529
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 826]] [shard 825 master]
106530
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 827]] [shard 825 master]
106531
+  (0.1ms) BEGIN [shard 827 master]
106532
+  (0.1ms) ROLLBACK [shard 827 master]
106533
+  (0.1ms) ROLLBACK [shard 825 master]
106534
+  (0.1ms) BEGIN [shard 825 master]
106535
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master]
106536
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 826]] [shard 825 master]
106537
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 827]] [shard 825 master]
106538
+  (0.1ms) BEGIN [shard 827 master]
106539
+  (0.1ms) SAVEPOINT active_record_1 [shard 825 master]
106540
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 825 master]
106541
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 825 master]
106542
+  (0.1ms) SAVEPOINT active_record_1 [shard 825 master]
106543
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 825 master]
106544
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 825 master]
106545
+  (0.2ms) ROLLBACK [shard 827 master]
106546
+  (0.1ms) ROLLBACK [shard 825 master]
106547
+  (0.1ms) BEGIN [shard 825 master]
106548
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master]
106549
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 826]] [shard 825 master]
106550
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 827]] [shard 825 master]
106551
+  (0.1ms) BEGIN [shard 827 master]
106552
+  (0.1ms) ROLLBACK [shard 827 master]
106553
+  (0.1ms) ROLLBACK [shard 825 master]
106554
+ SQL (0.5ms) DELETE FROM "switchman_shards" [shard 825 master]
106555
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master]
106556
+  (4.7ms) DROP SCHEMA switchman_test_shard_826 CASCADE [shard 826 deploy]
106557
+  (0.1ms) BEGIN
106558
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 826]]
106559
+  (0.1ms) COMMIT
106560
+  (5.7ms) DROP SCHEMA switchman_test_shard_827 CASCADE [shard 827 deploy]
106561
+  (0.2ms) BEGIN
106562
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 827]]
106563
+  (0.2ms) COMMIT
106564
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
106565
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
106566
+ SQL (0.5ms) DELETE FROM "switchman_shards"
106567
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
106568
+  (0.1ms) BEGIN
106569
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
106570
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
106571
+  (6.6ms) COMMIT
106572
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
106573
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1
106574
+  (0.1ms) BEGIN
106575
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]
106576
+  (0.3ms) CREATE SCHEMA switchman_test_shard_831 [shard 831 deploy]
106577
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 831 deploy]
106578
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 831 deploy]
106579
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 831 deploy]
106580
+ Migrating to CreateUsers (20130403132607)
106581
+  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 831 deploy]
106582
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 831 deploy]
106583
+ Migrating to CreateAppendages (20130411202442)
106584
+  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 831 deploy]
106585
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 831 deploy]
106586
+ Migrating to CreateMirrorUsers (20130411202551)
106587
+  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 831 deploy]
106588
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 831 deploy]
106589
+ Migrating to CreateDigits (20131022202028)
106590
+  (4.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 831 deploy]
106591
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 831 deploy]
106592
+ Migrating to CreateFeatures (20131206172923)
106593
+  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 831 deploy]
106594
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 831 deploy]
106595
+ Migrating to AddParentIdToUsers (20140123154135)
106596
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 831 deploy]
106597
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 831 deploy]
106598
+ Migrating to CreateRoots (20140219183820)
106599
+  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 831 deploy]
106600
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 831 deploy]
106601
+ SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 831 [["name", "switchman_test_shard_831"]] [shard 830 master]
106602
+  (0.7ms) COMMIT [shard 830 master]
106603
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master]
106604
+  (0.1ms) BEGIN [shard 830 master]
106605
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 830 master]
106606
+  (0.2ms) COMMIT [shard 830 master]
106607
+  (0.6ms) CREATE SCHEMA switchman_test_shard_832 [shard 832 deploy]
106608
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 832 deploy]
106609
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 832 deploy]
106610
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 832 deploy]
106611
+ Migrating to CreateUsers (20130403132607)
106612
+  (0.1ms) BEGIN [shard 832 deploy]
106613
+  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy]
106614
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 832 deploy]
106615
+  (0.3ms) COMMIT [shard 832 deploy]
106616
+ Migrating to CreateAppendages (20130411202442)
106617
+  (0.1ms) BEGIN [shard 832 deploy]
106618
+  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy]
106619
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 832 deploy]
106620
+  (0.4ms) COMMIT [shard 832 deploy]
106621
+ Migrating to CreateMirrorUsers (20130411202551)
106622
+  (0.1ms) BEGIN [shard 832 deploy]
106623
+  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy]
106624
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 832 deploy]
106625
+  (0.4ms) COMMIT [shard 832 deploy]
106626
+ Migrating to CreateDigits (20131022202028)
106627
+  (0.1ms) BEGIN [shard 832 deploy]
106628
+  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy]
106629
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 832 deploy]
106630
+  (0.3ms) COMMIT [shard 832 deploy]
106631
+ Migrating to CreateFeatures (20131206172923)
106632
+  (0.1ms) BEGIN [shard 832 deploy]
106633
+  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy]
106634
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 832 deploy]
106635
+  (0.4ms) COMMIT [shard 832 deploy]
106636
+ Migrating to AddParentIdToUsers (20140123154135)
106637
+  (0.2ms) BEGIN [shard 832 deploy]
106638
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 832 deploy]
106639
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 832 deploy]
106640
+  (0.3ms) COMMIT [shard 832 deploy]
106641
+ Migrating to CreateRoots (20140219183820)
106642
+  (0.1ms) BEGIN [shard 832 deploy]
106643
+  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy]
106644
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 832 deploy]
106645
+  (0.3ms) COMMIT [shard 832 deploy]
106646
+  (0.1ms) BEGIN [shard 830 master]
106647
+ SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 832 [["name", "switchman_test_shard_832"]] [shard 830 master]
106648
+  (0.4ms) COMMIT [shard 830 master]
106649
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 830 master]
106650
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master]
106651
+  (0.1ms) BEGIN [shard 830 master]
106652
+ Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 830 master]
106653
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 830]] [shard 830 master]
106654
+  (0.3ms) COMMIT [shard 830 master]
106655
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master]
106656
+  (0.1ms) BEGIN [shard 830 master]
106657
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 831], ["name", "switchman_test_shard_831"]] [shard 830 master]
106658
+  (0.4ms) COMMIT [shard 830 master]
106659
+  (0.1ms) BEGIN [shard 830 master]
106660
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 832], ["name", "switchman_test_shard_832"]] [shard 830 master]
106661
+  (0.4ms) COMMIT [shard 830 master]
106662
+  (0.1ms) BEGIN [shard 830 master]
106663
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master]
106664
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 831]] [shard 830 master]
106665
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 832]] [shard 830 master]
106666
+  (0.1ms) BEGIN [shard 832 master]
106667
+  (0.1ms) ROLLBACK [shard 832 master]
106668
+  (0.1ms) ROLLBACK [shard 830 master]
106669
+  (0.1ms) BEGIN [shard 830 master]
106670
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master]
106671
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 831]] [shard 830 master]
106672
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 832]] [shard 830 master]
106673
+  (0.1ms) BEGIN [shard 832 master]
106674
+  (0.1ms) ROLLBACK [shard 832 master]
106675
+  (0.1ms) ROLLBACK [shard 830 master]
106676
+  (0.1ms) BEGIN [shard 830 master]
106677
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master]
106678
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 831]] [shard 830 master]
106679
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 832]] [shard 830 master]
106680
+  (0.1ms) BEGIN [shard 832 master]
106681
+  (0.1ms) SAVEPOINT active_record_1 [shard 830 master]
106682
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 830 master]
106683
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 830 master]
106684
+  (0.1ms) SAVEPOINT active_record_1 [shard 830 master]
106685
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 830 master]
106686
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 830 master]
106687
+  (0.2ms) ROLLBACK [shard 832 master]
106688
+  (0.2ms) ROLLBACK [shard 830 master]
106689
+ SQL (0.4ms) DELETE FROM "switchman_shards" [shard 830 master]
106690
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master]
106691
+  (4.7ms) DROP SCHEMA switchman_test_shard_831 CASCADE [shard 831 deploy]
106692
+  (0.1ms) BEGIN
106693
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 831]]
106694
+  (0.1ms) COMMIT
106695
+  (6.3ms) DROP SCHEMA switchman_test_shard_832 CASCADE [shard 832 deploy]
106696
+  (0.3ms) BEGIN
106697
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 832]]
106698
+  (0.1ms) COMMIT
106699
+  (0.5ms) SELECT * FROM unnest(current_schemas(false))
106700
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
106701
+ SQL (0.4ms) DELETE FROM "switchman_shards"
106702
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
106703
+  (0.1ms) BEGIN
106704
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
106705
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
106706
+  (6.4ms) COMMIT
106707
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
106708
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1
106709
+  (0.1ms) BEGIN
106710
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]
106711
+  (0.3ms) CREATE SCHEMA switchman_test_shard_836 [shard 836 deploy]
106712
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 836 deploy]
106713
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 836 deploy]
106714
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 836 deploy]
106715
+ Migrating to CreateUsers (20130403132607)
106716
+  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 836 deploy]
106717
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 836 deploy]
106718
+ Migrating to CreateAppendages (20130411202442)
106719
+  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 836 deploy]
106720
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 836 deploy]
106721
+ Migrating to CreateMirrorUsers (20130411202551)
106722
+  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 836 deploy]
106723
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 836 deploy]
106724
+ Migrating to CreateDigits (20131022202028)
106725
+  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 836 deploy]
106726
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 836 deploy]
106727
+ Migrating to CreateFeatures (20131206172923)
106728
+  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 836 deploy]
106729
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 836 deploy]
106730
+ Migrating to AddParentIdToUsers (20140123154135)
106731
+  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 836 deploy]
106732
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 836 deploy]
106733
+ Migrating to CreateRoots (20140219183820)
106734
+  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 836 deploy]
106735
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 836 deploy]
106736
+ SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 836 [["name", "switchman_test_shard_836"]] [shard 835 master]
106737
+  (0.7ms) COMMIT [shard 835 master]
106738
+ Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master]
106739
+  (0.1ms) BEGIN [shard 835 master]
106740
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 835 master]
106741
+  (0.3ms) COMMIT [shard 835 master]
106742
+  (0.6ms) CREATE SCHEMA switchman_test_shard_837 [shard 837 deploy]
106743
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 837 deploy]
106744
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 837 deploy]
106745
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 837 deploy]
106746
+ Migrating to CreateUsers (20130403132607)
106747
+  (0.1ms) BEGIN [shard 837 deploy]
106748
+  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy]
106749
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 837 deploy]
106750
+  (0.4ms) COMMIT [shard 837 deploy]
106751
+ Migrating to CreateAppendages (20130411202442)
106752
+  (0.1ms) BEGIN [shard 837 deploy]
106753
+  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy]
106754
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 837 deploy]
106755
+  (0.3ms) COMMIT [shard 837 deploy]
106756
+ Migrating to CreateMirrorUsers (20130411202551)
106757
+  (0.1ms) BEGIN [shard 837 deploy]
106758
+  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy]
106759
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 837 deploy]
106760
+  (0.4ms) COMMIT [shard 837 deploy]
106761
+ Migrating to CreateDigits (20131022202028)
106762
+  (0.1ms) BEGIN [shard 837 deploy]
106763
+  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy]
106764
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 837 deploy]
106765
+  (0.4ms) COMMIT [shard 837 deploy]
106766
+ Migrating to CreateFeatures (20131206172923)
106767
+  (0.1ms) BEGIN [shard 837 deploy]
106768
+  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy]
106769
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 837 deploy]
106770
+  (0.4ms) COMMIT [shard 837 deploy]
106771
+ Migrating to AddParentIdToUsers (20140123154135)
106772
+  (0.1ms) BEGIN [shard 837 deploy]
106773
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 837 deploy]
106774
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 837 deploy]
106775
+  (0.3ms) COMMIT [shard 837 deploy]
106776
+ Migrating to CreateRoots (20140219183820)
106777
+  (0.1ms) BEGIN [shard 837 deploy]
106778
+  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy]
106779
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 837 deploy]
106780
+  (0.3ms) COMMIT [shard 837 deploy]
106781
+  (0.1ms) BEGIN [shard 835 master]
106782
+ SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 837 [["name", "switchman_test_shard_837"]] [shard 835 master]
106783
+  (0.3ms) COMMIT [shard 835 master]
106784
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 835 master]
106785
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master]
106786
+  (0.1ms) BEGIN [shard 835 master]
106787
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 835 master]
106788
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 835]] [shard 835 master]
106789
+  (0.3ms) COMMIT [shard 835 master]
106790
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master]
106791
+  (0.1ms) BEGIN [shard 835 master]
106792
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 836], ["name", "switchman_test_shard_836"]] [shard 835 master]
106793
+  (0.3ms) COMMIT [shard 835 master]
106794
+  (0.1ms) BEGIN [shard 835 master]
106795
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 837], ["name", "switchman_test_shard_837"]] [shard 835 master]
106796
+  (0.3ms) COMMIT [shard 835 master]
106797
+  (0.1ms) BEGIN [shard 835 master]
106798
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master]
106799
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 836]] [shard 835 master]
106800
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 837]] [shard 835 master]
106801
+  (0.1ms) BEGIN [shard 837 master]
106802
+  (0.1ms) ROLLBACK [shard 837 master]
106803
+  (0.1ms) ROLLBACK [shard 835 master]
106804
+  (0.1ms) BEGIN [shard 835 master]
106805
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master]
106806
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 836]] [shard 835 master]
106807
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 837]] [shard 835 master]
106808
+  (0.1ms) BEGIN [shard 837 master]
106809
+  (0.1ms) SAVEPOINT active_record_1 [shard 835 master]
106810
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 835 master]
106811
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 835 master]
106812
+  (0.1ms) SAVEPOINT active_record_1 [shard 835 master]
106813
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 835 master]
106814
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 835 master]
106815
+  (0.1ms) ROLLBACK [shard 837 master]
106816
+  (0.1ms) ROLLBACK [shard 835 master]
106817
+  (0.1ms) BEGIN [shard 835 master]
106818
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master]
106819
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 836]] [shard 835 master]
106820
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 837]] [shard 835 master]
106821
+  (0.2ms) BEGIN [shard 837 master]
106822
+  (0.2ms) ROLLBACK [shard 837 master]
106823
+  (0.1ms) ROLLBACK [shard 835 master]
106824
+ SQL (0.4ms) DELETE FROM "switchman_shards" [shard 835 master]
106825
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master]
106826
+  (4.5ms) DROP SCHEMA switchman_test_shard_836 CASCADE [shard 836 deploy]
106827
+  (0.1ms) BEGIN
106828
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 836]]
106829
+  (0.1ms) COMMIT
106830
+  (6.1ms) DROP SCHEMA switchman_test_shard_837 CASCADE [shard 837 deploy]
106831
+  (0.3ms) BEGIN
106832
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 837]]
106833
+  (0.1ms) COMMIT
106834
+  (0.5ms) SELECT * FROM unnest(current_schemas(false))
106835
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
106836
+ SQL (0.6ms) DELETE FROM "switchman_shards"
106837
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
106838
+  (0.1ms) BEGIN
106839
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
106840
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]
106841
+  (0.4ms) COMMIT
106842
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
106843
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1
106844
+  (0.1ms) BEGIN
106845
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]
106846
+  (0.2ms) CREATE SCHEMA switchman_test_shard_841 [shard 841 deploy]
106847
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 841 deploy]
106848
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 841 deploy]
106849
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 841 deploy]
106850
+ Migrating to CreateUsers (20130403132607)
106851
+  (3.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 841 deploy]
106852
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 841 deploy]
106853
+ Migrating to CreateAppendages (20130411202442)
106854
+  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 841 deploy]
106855
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 841 deploy]
106856
+ Migrating to CreateMirrorUsers (20130411202551)
106857
+  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 841 deploy]
106858
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 841 deploy]
106859
+ Migrating to CreateDigits (20131022202028)
106860
+  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 841 deploy]
106861
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 841 deploy]
106862
+ Migrating to CreateFeatures (20131206172923)
106863
+  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 841 deploy]
106864
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 841 deploy]
106865
+ Migrating to AddParentIdToUsers (20140123154135)
106866
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 841 deploy]
106867
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 841 deploy]
106868
+ Migrating to CreateRoots (20140219183820)
106869
+  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 841 deploy]
106870
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 841 deploy]
106871
+ SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 841 [["name", "switchman_test_shard_841"]] [shard 840 master]
106872
+  (0.6ms) COMMIT [shard 840 master]
106873
+ Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master]
106874
+  (0.1ms) BEGIN [shard 840 master]
106875
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 840 master]
106876
+  (0.2ms) COMMIT [shard 840 master]
106877
+  (0.6ms) CREATE SCHEMA switchman_test_shard_842 [shard 842 deploy]
106878
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 842 deploy]
106879
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 842 deploy]
106880
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 842 deploy]
106881
+ Migrating to CreateUsers (20130403132607)
106882
+  (0.1ms) BEGIN [shard 842 deploy]
106883
+  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy]
106884
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 842 deploy]
106885
+  (0.3ms) COMMIT [shard 842 deploy]
106886
+ Migrating to CreateAppendages (20130411202442)
106887
+  (0.2ms) BEGIN [shard 842 deploy]
106888
+  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy]
106889
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 842 deploy]
106890
+  (0.3ms) COMMIT [shard 842 deploy]
106891
+ Migrating to CreateMirrorUsers (20130411202551)
106892
+  (0.1ms) BEGIN [shard 842 deploy]
106893
+  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy]
106894
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 842 deploy]
106895
+  (0.3ms) COMMIT [shard 842 deploy]
106896
+ Migrating to CreateDigits (20131022202028)
106897
+  (0.1ms) BEGIN [shard 842 deploy]
106898
+  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy]
106899
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 842 deploy]
106900
+  (0.3ms) COMMIT [shard 842 deploy]
106901
+ Migrating to CreateFeatures (20131206172923)
106902
+  (0.1ms) BEGIN [shard 842 deploy]
106903
+  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy]
106904
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 842 deploy]
106905
+  (0.3ms) COMMIT [shard 842 deploy]
106906
+ Migrating to AddParentIdToUsers (20140123154135)
106907
+  (0.1ms) BEGIN [shard 842 deploy]
106908
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 842 deploy]
106909
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 842 deploy]
106910
+  (0.4ms) COMMIT [shard 842 deploy]
106911
+ Migrating to CreateRoots (20140219183820)
106912
+  (0.1ms) BEGIN [shard 842 deploy]
106913
+  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy]
106914
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 842 deploy]
106915
+  (0.3ms) COMMIT [shard 842 deploy]
106916
+  (0.1ms) BEGIN [shard 840 master]
106917
+ SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 842 [["name", "switchman_test_shard_842"]] [shard 840 master]
106918
+  (0.2ms) COMMIT [shard 840 master]
106919
+ SQL (0.2ms) DELETE FROM "switchman_shards" [shard 840 master]
106920
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master]
106921
+  (0.1ms) BEGIN [shard 840 master]
106922
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 840 master]
106923
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 840]] [shard 840 master]
106924
+  (0.3ms) COMMIT [shard 840 master]
106925
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master]
106926
+  (0.1ms) BEGIN [shard 840 master]
106927
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 841], ["name", "switchman_test_shard_841"]] [shard 840 master]
106928
+  (0.3ms) COMMIT [shard 840 master]
106929
+  (0.1ms) BEGIN [shard 840 master]
106930
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 842], ["name", "switchman_test_shard_842"]] [shard 840 master]
106931
+  (0.3ms) COMMIT [shard 840 master]
106932
+  (0.1ms) BEGIN [shard 840 master]
106933
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master]
106934
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 841]] [shard 840 master]
106935
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 842]] [shard 840 master]
106936
+  (0.1ms) BEGIN [shard 842 master]
106937
+  (0.1ms) SAVEPOINT active_record_1 [shard 840 master]
106938
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 840 master]
106939
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 840 master]
106940
+  (0.1ms) SAVEPOINT active_record_1 [shard 840 master]
106941
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 840 master]
106942
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 840 master]
106943
+  (0.2ms) ROLLBACK [shard 842 master]
106944
+  (0.1ms) ROLLBACK [shard 840 master]
106945
+  (0.1ms) BEGIN [shard 840 master]
106946
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master]
106947
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 841]] [shard 840 master]
106948
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 842]] [shard 840 master]
106949
+  (0.1ms) BEGIN [shard 842 master]
106950
+  (0.1ms) ROLLBACK [shard 842 master]
106951
+  (0.1ms) ROLLBACK [shard 840 master]
106952
+  (0.1ms) BEGIN [shard 840 master]
106953
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master]
106954
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 841]] [shard 840 master]
106955
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 842]] [shard 840 master]
106956
+  (0.1ms) BEGIN [shard 842 master]
106957
+  (0.1ms) ROLLBACK [shard 842 master]
106958
+  (0.1ms) ROLLBACK [shard 840 master]
106959
+ SQL (0.4ms) DELETE FROM "switchman_shards" [shard 840 master]
106960
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master]
106961
+  (5.2ms) DROP SCHEMA switchman_test_shard_841 CASCADE [shard 841 deploy]
106962
+  (0.1ms) BEGIN
106963
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 841]]
106964
+  (0.1ms) COMMIT
106965
+  (6.0ms) DROP SCHEMA switchman_test_shard_842 CASCADE [shard 842 deploy]
106966
+  (0.3ms) BEGIN
106967
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 842]]
106968
+  (0.1ms) COMMIT
106969
+ Connecting to database specified by database.yml
106970
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
106971
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
106972
+ SQL (0.5ms) DELETE FROM "switchman_shards"
106973
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
106974
+  (0.1ms) BEGIN
106975
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
106976
+ SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]
106977
+  (0.3ms) COMMIT
106978
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
106979
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1
106980
+  (0.1ms) BEGIN
106981
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]
106982
+  (0.3ms) CREATE SCHEMA switchman_test_shard_846 [shard 846 deploy]
106983
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 846 deploy]
106984
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 846 deploy]
106985
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 846 deploy]
106986
+ Migrating to CreateUsers (20130403132607)
106987
+  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 846 deploy]
106988
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 846 deploy]
106989
+ Migrating to CreateAppendages (20130411202442)
106990
+  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 846 deploy]
106991
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 846 deploy]
106992
+ Migrating to CreateMirrorUsers (20130411202551)
106993
+  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 846 deploy]
106994
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 846 deploy]
106995
+ Migrating to CreateDigits (20131022202028)
106996
+  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 846 deploy]
106997
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 846 deploy]
106998
+ Migrating to CreateFeatures (20131206172923)
106999
+  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 846 deploy]
107000
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 846 deploy]
107001
+ Migrating to AddParentIdToUsers (20140123154135)
107002
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 846 deploy]
107003
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 846 deploy]
107004
+ Migrating to CreateRoots (20140219183820)
107005
+  (3.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 846 deploy]
107006
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 846 deploy]
107007
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_846' WHERE "switchman_shards"."id" = 846 [shard 845 master]
107008
+  (1.3ms) COMMIT [shard 845 master]
107009
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 845 master]
107010
+  (0.1ms) BEGIN [shard 845 master]
107011
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 845 master]
107012
+  (0.3ms) COMMIT [shard 845 master]
107013
+  (0.6ms) CREATE SCHEMA switchman_test_shard_847 [shard 847 deploy]
107014
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 847 deploy]
107015
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 847 deploy]
107016
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 847 deploy]
107017
+ Migrating to CreateUsers (20130403132607)
107018
+  (0.1ms) BEGIN [shard 847 deploy]
107019
+  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]
107020
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 847 deploy]
107021
+  (0.3ms) COMMIT [shard 847 deploy]
107022
+ Migrating to CreateAppendages (20130411202442)
107023
+  (0.1ms) BEGIN [shard 847 deploy]
107024
+  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]
107025
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 847 deploy]
107026
+  (0.3ms) COMMIT [shard 847 deploy]
107027
+ Migrating to CreateMirrorUsers (20130411202551)
107028
+  (0.1ms) BEGIN [shard 847 deploy]
107029
+  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]
107030
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 847 deploy]
107031
+  (0.3ms) COMMIT [shard 847 deploy]
107032
+ Migrating to CreateDigits (20131022202028)
107033
+  (0.1ms) BEGIN [shard 847 deploy]
107034
+  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]
107035
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 847 deploy]
107036
+  (0.2ms) COMMIT [shard 847 deploy]
107037
+ Migrating to CreateFeatures (20131206172923)
107038
+  (0.1ms) BEGIN [shard 847 deploy]
107039
+  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]
107040
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 847 deploy]
107041
+  (0.3ms) COMMIT [shard 847 deploy]
107042
+ Migrating to AddParentIdToUsers (20140123154135)
107043
+  (0.1ms) BEGIN [shard 847 deploy]
107044
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 847 deploy]
107045
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 847 deploy]
107046
+  (0.2ms) COMMIT [shard 847 deploy]
107047
+ Migrating to CreateRoots (20140219183820)
107048
+  (0.0ms) BEGIN [shard 847 deploy]
107049
+  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]
107050
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 847 deploy]
107051
+  (0.3ms) COMMIT [shard 847 deploy]
107052
+  (0.1ms) BEGIN [shard 845 master]
107053
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_847' WHERE "switchman_shards"."id" = 847 [shard 845 master]
107054
+  (0.3ms) COMMIT [shard 845 master]
107055
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 845 master]
107056
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master]
107057
+  (0.1ms) BEGIN [shard 845 master]
107058
+ Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master]
107059
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 845], ["name", nil]] [shard 845 master]
107060
+  (0.2ms) COMMIT [shard 845 master]
107061
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master]
107062
+  (0.0ms) BEGIN [shard 845 master]
107063
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 846], ["name", "switchman_test_shard_846"]] [shard 845 master]
107064
+  (0.2ms) COMMIT [shard 845 master]
107065
+  (0.0ms) BEGIN [shard 845 master]
107066
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 847], ["name", "switchman_test_shard_847"]] [shard 845 master]
107067
+  (0.2ms) COMMIT [shard 845 master]
107068
+  (0.0ms) BEGIN [shard 845 master]
107069
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master]
107070
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 846]] [shard 845 master]
107071
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 847]] [shard 845 master]
107072
+  (0.1ms) BEGIN [shard 847 master]
107073
+  (0.1ms) ROLLBACK [shard 847 master]
107074
+  (0.1ms) ROLLBACK [shard 845 master]
107075
+  (0.1ms) BEGIN [shard 845 master]
107076
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master]
107077
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 846]] [shard 845 master]
107078
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 847]] [shard 845 master]
107079
+  (0.0ms) BEGIN [shard 847 master]
107080
+  (0.1ms) SAVEPOINT active_record_1 [shard 845 master]
107081
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 845 master]
107082
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 845 master]
107083
+  (0.0ms) SAVEPOINT active_record_1 [shard 845 master]
107084
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 845 master]
107085
+  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 845 master]
107086
+  (0.1ms) ROLLBACK [shard 847 master]
107087
+  (0.1ms) ROLLBACK [shard 845 master]
107088
+  (0.1ms) BEGIN [shard 845 master]
107089
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master]
107090
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 846]] [shard 845 master]
107091
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 847]] [shard 845 master]
107092
+  (0.1ms) BEGIN [shard 847 master]
107093
+  (0.1ms) ROLLBACK [shard 847 master]
107094
+  (0.1ms) ROLLBACK [shard 845 master]
107095
+ SQL (9.7ms) DELETE FROM "switchman_shards" [shard 845 master]
107096
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master]
107097
+  (4.8ms) DROP SCHEMA switchman_test_shard_846 CASCADE [shard 846 deploy]
107098
+  (0.1ms) BEGIN
107099
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 846]]
107100
+  (0.1ms) COMMIT
107101
+  (6.3ms) DROP SCHEMA switchman_test_shard_847 CASCADE [shard 847 deploy]
107102
+  (0.2ms) BEGIN
107103
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 847]]
107104
+  (0.1ms) COMMIT
@@ -18,5 +18,16 @@ module Switchman
18
18
  @shard2.activate{ proxy.current_pool.expects(:clear_idle_connections!).once }
19
19
  proxy.clear_idle_connections!(Time.now)
20
20
  end
21
+
22
+ it "should handle an array of slaves when creating a pool" do
23
+ spec = Object.new
24
+ spec.instance_variable_set(:@config, adapter: Shard.connection_pool.spec.config[:adapter], database: 'master', slave: [ { database: 'slave1' }, { database: 'slave2' }])
25
+ default_pool = stub(spec: spec)
26
+ cache = {}
27
+ proxy = ConnectionPoolProxy.new(:unsharded, default_pool, cache)
28
+ proxy.stubs(:active_shackles_environment).returns(:slave)
29
+ new_pool = proxy.send(:create_pool)
30
+ expect(new_pool.spec.config[:database]).to eq 'slave1'
31
+ end
21
32
  end
22
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switchman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.12
4
+ version: 1.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-07-28 00:00:00.000000000 Z
13
+ date: 2014-08-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties