switchman 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjMyYmYxNTZmYzkwMGY0MzA4MDJhZDY5ODkzMTYyYjQzMjM5Mjg5OQ==
4
+ NWQyNTFiOTI1ZDIzZjBkYmFkMjllMjdkNjZmZjJmNDZkOGIwNzcwMw==
5
5
  data.tar.gz: !binary |-
6
- NjRhNWZmM2UzOTcxMjdiZWJiYzgxMGNiODczNTJkNmQ4MGYxMzE2OA==
6
+ MzliMmYzNDdlYmI4NWQxOWZkYjI3YmM5ZGNlOTEzMzZiYWVhZGYzZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjEwYmFiMmNmOTI5MjlhNTQ4Y2FmOWRmYzU2MjE2YzM4MzhlMTM2ZWEwN2Ni
10
- Nzg4ZjZlZmNhMGZiMzA2NGIyYTMwNGFlZmY0OTZhZjdkNjk5ZWNjMGU4Y2M4
11
- NGQyZGRhMzY0OTI3OTc2MjRjNzNlZDhiNWU0YzQxOTZlMjhlOWI=
9
+ NWY5NzdkN2RmMWViNDdhMDA3OTE4Y2M1MTk2ZmRmODE3NDZmZGUyYzk5OTgw
10
+ MWFhODA0NjY1ZGNjMGRmYmE0ZTk0YjNjNDY3YjVlMTNhODcyZTgzOTk4NTBj
11
+ NWUyMDc1Yjk4MGFhMzY3ZTYzNjA0NzRmMmUwZjc3NTA2NTUyMmE=
12
12
  data.tar.gz: !binary |-
13
- ZGQ2MmM2ZDdmNjY5MjM0NTE2ZTIwMjZjMDg5MWVlZTNkYzQ5YzQ5MjFkZDgx
14
- ZGRiZWNiYzE4NmQ3MzU3OTJiZDMzMjgzNjc0ZmY5OWRlOGI5YzBlNjdmODk5
15
- OTc2MzJjNmI1ZWUzODliOGNmZmQ4MmJiMWRkZDdkYTJhOGEyODQ=
13
+ MTE0NDU5ZjhjMTNlMDEzNTEzZWVlN2YyODdkMzIzNmQ1YTFiYWZmOGU3YmZi
14
+ M2Y0MzMyNzZkOGI5MjJmY2FiYzhhMmE5NGE2YmVjMTdjNTZlNDA3MzliYjJi
15
+ M2RhMmM4ZjU5YzM1MTUyN2NkMzc0ZTdlZjc2Zjg4OTQ2N2QzZTA=
@@ -43,7 +43,7 @@ module Switchman
43
43
 
44
44
  def initialize(settings = {})
45
45
  @id = settings[:id]
46
- @config = (settings[:config] || {}).symbolize_keys
46
+ @config = (settings[:config] || {}).deep_symbolize_keys
47
47
  @configs = {}
48
48
  end
49
49
 
@@ -98,7 +98,7 @@ module Switchman
98
98
 
99
99
  def shareable?
100
100
  @shareable_environment_key ||= []
101
- environment = ::Shackles.environment
101
+ environment = shackles_environment
102
102
  explicit_user = ::Shackles.global_config[:username]
103
103
  return @shareable if @shareable_environment_key == [environment, explicit_user]
104
104
  @shareable_environment_key = [environment, explicit_user]
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  end
Binary file
Binary file
@@ -44741,3 +44741,615 @@ Migrating to CreateRoots (20140219183820)
44741
44741
   (9.2ms) DROP SCHEMA switchman_test_shard_4557 CASCADE [shard 4557 deploy]
44742
44742
   (0.2ms) BEGIN
44743
44743
   (0.1ms) COMMIT
44744
+ Connecting to database specified by database.yml
44745
+  (0.5ms) SELECT * FROM unnest(current_schemas(false))
44746
+ Switchman::Shard Load (26.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
44747
+  (0.1ms) BEGIN
44748
+  (0.1ms) ROLLBACK
44749
+  (0.1ms) BEGIN
44750
+  (0.1ms) ROLLBACK
44751
+  (0.0ms) BEGIN
44752
+  (0.0ms) ROLLBACK
44753
+  (0.0ms) BEGIN
44754
+  (0.1ms) ROLLBACK
44755
+  (0.1ms) BEGIN
44756
+  (0.1ms) ROLLBACK
44757
+  (0.1ms) BEGIN
44758
+  (0.1ms) ROLLBACK
44759
+  (0.1ms) BEGIN
44760
+  (0.0ms) ROLLBACK
44761
+  (0.1ms) BEGIN
44762
+  (0.1ms) ROLLBACK
44763
+  (0.0ms) BEGIN
44764
+  (0.1ms) ROLLBACK
44765
+  (0.0ms) BEGIN
44766
+  (0.0ms) ROLLBACK
44767
+  (0.0ms) BEGIN
44768
+  (0.0ms) ROLLBACK
44769
+  (0.0ms) BEGIN
44770
+  (0.0ms) ROLLBACK
44771
+  (0.0ms) BEGIN
44772
+  (0.0ms) ROLLBACK
44773
+ SQL (0.7ms) DELETE FROM "switchman_shards"
44774
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
44775
+  (0.1ms) BEGIN
44776
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
44777
+ SQL (20.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]
44778
+  (6.9ms) COMMIT
44779
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
44780
+ 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
44781
+  (0.1ms) BEGIN
44782
+ 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"]]
44783
+  (13.9ms) CREATE SCHEMA switchman_test_shard_4579 [shard 4579 deploy]
44784
+  (17.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4579 deploy]
44785
+  (3.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4579 deploy]
44786
+  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4579 deploy]
44787
+ Migrating to CreateUsers (20130403132607)
44788
+  (13.1ms) 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 4579 deploy]
44789
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4579 deploy]
44790
+ Migrating to CreateAppendages (20130411202442)
44791
+  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4579 deploy]
44792
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4579 deploy]
44793
+ Migrating to CreateMirrorUsers (20130411202551)
44794
+  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4579 deploy]
44795
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4579 deploy]
44796
+ Migrating to CreateDigits (20131022202028)
44797
+  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4579 deploy]
44798
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4579 deploy]
44799
+ Migrating to CreateFeatures (20131206172923)
44800
+  (4.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 4579 deploy]
44801
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4579 deploy]
44802
+ Migrating to AddParentIdToUsers (20140123154135)
44803
+  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4579 deploy]
44804
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4579 deploy]
44805
+ Migrating to CreateRoots (20140219183820)
44806
+  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4579 deploy]
44807
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4579 deploy]
44808
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4579' WHERE "switchman_shards"."id" = 4579 [shard 4578 master]
44809
+  (1.9ms) COMMIT [shard 4578 master]
44810
+ 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 id LIMIT 1 [shard 4578 master]
44811
+  (0.1ms) BEGIN [shard 4578 master]
44812
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 4578 master]
44813
+  (0.2ms) COMMIT [shard 4578 master]
44814
+  (2.0ms) CREATE SCHEMA switchman_test_shard_4580 [shard 4580 deploy]
44815
+  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4580 deploy]
44816
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4580 deploy]
44817
+  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4580 deploy]
44818
+ Migrating to CreateUsers (20130403132607)
44819
+  (0.1ms) BEGIN [shard 4580 deploy]
44820
+  (3.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 4580 deploy]
44821
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4580 deploy]
44822
+  (0.3ms) COMMIT [shard 4580 deploy]
44823
+ Migrating to CreateAppendages (20130411202442)
44824
+  (0.1ms) BEGIN [shard 4580 deploy]
44825
+  (5.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4580 deploy]
44826
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4580 deploy]
44827
+  (0.4ms) COMMIT [shard 4580 deploy]
44828
+ Migrating to CreateMirrorUsers (20130411202551)
44829
+  (0.1ms) BEGIN [shard 4580 deploy]
44830
+  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4580 deploy]
44831
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4580 deploy]
44832
+  (0.3ms) COMMIT [shard 4580 deploy]
44833
+ Migrating to CreateDigits (20131022202028)
44834
+  (0.1ms) BEGIN [shard 4580 deploy]
44835
+  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4580 deploy]
44836
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4580 deploy]
44837
+  (0.3ms) COMMIT [shard 4580 deploy]
44838
+ Migrating to CreateFeatures (20131206172923)
44839
+  (0.1ms) BEGIN [shard 4580 deploy]
44840
+  (1.8ms) 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 4580 deploy]
44841
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4580 deploy]
44842
+  (0.3ms) COMMIT [shard 4580 deploy]
44843
+ Migrating to AddParentIdToUsers (20140123154135)
44844
+  (0.1ms) BEGIN [shard 4580 deploy]
44845
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4580 deploy]
44846
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4580 deploy]
44847
+  (0.3ms) COMMIT [shard 4580 deploy]
44848
+ Migrating to CreateRoots (20140219183820)
44849
+  (0.1ms) BEGIN [shard 4580 deploy]
44850
+  (7.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4580 deploy]
44851
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4580 deploy]
44852
+  (0.4ms) COMMIT [shard 4580 deploy]
44853
+  (0.0ms) BEGIN [shard 4578 master]
44854
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4580' WHERE "switchman_shards"."id" = 4580 [shard 4578 master]
44855
+  (0.3ms) COMMIT [shard 4578 master]
44856
+  (0.1ms) BEGIN [shard 4578 master]
44857
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4578 master]
44858
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4579]] [shard 4578 master]
44859
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4580]] [shard 4578 master]
44860
+  (0.0ms) BEGIN [shard 4580 master]
44861
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 4578 master]
44862
+  (0.1ms) SAVEPOINT active_record_1 [shard 4578 master]
44863
+ 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", "public"]] [shard 4578 master]
44864
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4578 master]
44865
+  (0.7ms) CREATE SCHEMA switchman_test_shard_4581 [shard 4581 deploy]
44866
+  (5.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4581 deploy]
44867
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4581 deploy]
44868
+  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4581 deploy]
44869
+ Migrating to CreateUsers (20130403132607)
44870
+  (0.1ms) BEGIN [shard 4581 deploy]
44871
+  (3.6ms) 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 4581 deploy]
44872
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4581 deploy]
44873
+  (0.3ms) COMMIT [shard 4581 deploy]
44874
+ Migrating to CreateAppendages (20130411202442)
44875
+  (0.1ms) BEGIN [shard 4581 deploy]
44876
+  (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 4581 deploy]
44877
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4581 deploy]
44878
+  (0.4ms) COMMIT [shard 4581 deploy]
44879
+ Migrating to CreateMirrorUsers (20130411202551)
44880
+  (0.1ms) BEGIN [shard 4581 deploy]
44881
+  (7.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4581 deploy]
44882
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4581 deploy]
44883
+  (0.3ms) COMMIT [shard 4581 deploy]
44884
+ Migrating to CreateDigits (20131022202028)
44885
+  (0.1ms) BEGIN [shard 4581 deploy]
44886
+  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4581 deploy]
44887
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4581 deploy]
44888
+  (0.3ms) COMMIT [shard 4581 deploy]
44889
+ Migrating to CreateFeatures (20131206172923)
44890
+  (0.1ms) BEGIN [shard 4581 deploy]
44891
+  (1.6ms) 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 4581 deploy]
44892
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4581 deploy]
44893
+  (0.3ms) COMMIT [shard 4581 deploy]
44894
+ Migrating to AddParentIdToUsers (20140123154135)
44895
+  (0.1ms) BEGIN [shard 4581 deploy]
44896
+  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4581 deploy]
44897
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4581 deploy]
44898
+  (0.2ms) COMMIT [shard 4581 deploy]
44899
+ Migrating to CreateRoots (20140219183820)
44900
+  (0.1ms) BEGIN [shard 4581 deploy]
44901
+  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4581 deploy]
44902
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4581 deploy]
44903
+  (0.2ms) COMMIT [shard 4581 deploy]
44904
+  (0.1ms) SAVEPOINT active_record_1 [shard 4578 master]
44905
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4581' WHERE "switchman_shards"."id" = 4581 [shard 4578 master]
44906
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4578 master]
44907
+  (0.1ms) BEGIN [shard 4581 master]
44908
+ SQL (10.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 12 Jun 2014 20:57:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 12 Jun 2014 20:57:36 UTC +00:00]] [shard 4581 master]
44909
+  (5.8ms) COMMIT [shard 4581 master]
44910
+  (34.2ms) DROP SCHEMA switchman_test_shard_4581 CASCADE [shard 4581 deploy]
44911
+  (0.1ms) SAVEPOINT active_record_1 [shard 4578 master]
44912
+ SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4581]] [shard 4578 master]
44913
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4578 master]
44914
+  (0.1ms) ROLLBACK [shard 4580 master]
44915
+  (0.1ms) ROLLBACK [shard 4578 master]
44916
+  (0.0ms) BEGIN [shard 4578 master]
44917
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4578 master]
44918
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4579]] [shard 4578 master]
44919
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4580]] [shard 4578 master]
44920
+  (0.0ms) BEGIN [shard 4580 master]
44921
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 4578 master]
44922
+  (0.1ms) SAVEPOINT active_record_1 [shard 4578 master]
44923
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 4578 master]
44924
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4578 master]
44925
+  (0.1ms) select sqlite_version(*) [shard 4582 deploy]
44926
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 4582 deploy]
44927
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4582 deploy]
44928
+  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 4582 deploy]
44929
+ Migrating to CreateUsers (20130403132607)
44930
+  (0.0ms) begin transaction [shard 4582 deploy]
44931
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 4582 deploy]
44932
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4582 deploy]
44933
+  (0.7ms) commit transaction [shard 4582 deploy]
44934
+ Migrating to CreateAppendages (20130411202442)
44935
+  (0.0ms) begin transaction [shard 4582 deploy]
44936
+  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 4582 deploy]
44937
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4582 deploy]
44938
+  (0.6ms) commit transaction [shard 4582 deploy]
44939
+ Migrating to CreateMirrorUsers (20130411202551)
44940
+  (0.0ms) begin transaction [shard 4582 deploy]
44941
+  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 4582 deploy]
44942
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4582 deploy]
44943
+  (0.6ms) commit transaction [shard 4582 deploy]
44944
+ Migrating to CreateDigits (20131022202028)
44945
+  (0.0ms) begin transaction [shard 4582 deploy]
44946
+  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 4582 deploy]
44947
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4582 deploy]
44948
+  (0.6ms) commit transaction [shard 4582 deploy]
44949
+ Migrating to CreateFeatures (20131206172923)
44950
+  (0.0ms) begin transaction [shard 4582 deploy]
44951
+  (0.4ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 4582 deploy]
44952
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4582 deploy]
44953
+  (0.6ms) commit transaction [shard 4582 deploy]
44954
+ Migrating to AddParentIdToUsers (20140123154135)
44955
+  (0.0ms) begin transaction [shard 4582 deploy]
44956
+  (0.4ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 4582 deploy]
44957
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4582 deploy]
44958
+  (0.6ms) commit transaction [shard 4582 deploy]
44959
+ Migrating to CreateRoots (20140219183820)
44960
+  (0.0ms) begin transaction [shard 4582 deploy]
44961
+  (0.4ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 4582 deploy]
44962
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4582 deploy]
44963
+  (0.7ms) commit transaction [shard 4582 deploy]
44964
+  (0.1ms) SAVEPOINT active_record_1 [shard 4578 master]
44965
+  (0.3ms) UPDATE "switchman_shards" SET "name" = 'db/shard_4582.sqlite3' WHERE "switchman_shards"."id" = 4582 [shard 4578 master]
44966
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4578 master]
44967
+  (0.1ms) begin transaction [shard 4582 master]
44968
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 12 Jun 2014 20:57:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 12 Jun 2014 20:57:36 UTC +00:00]] [shard 4582 master]
44969
+  (0.7ms) commit transaction [shard 4582 master]
44970
+ Drop failed: No such file or directory - db/shard_4582.sqlite3
44971
+  (0.1ms) SAVEPOINT active_record_1 [shard 4578 master]
44972
+ SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4582]] [shard 4578 master]
44973
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4578 master]
44974
+  (0.1ms) ROLLBACK [shard 4580 master]
44975
+  (0.2ms) ROLLBACK [shard 4578 master]
44976
+  (0.1ms) BEGIN [shard 4578 master]
44977
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4578 master]
44978
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4579]] [shard 4578 master]
44979
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4580]] [shard 4578 master]
44980
+  (0.0ms) BEGIN [shard 4580 master]
44981
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 4578 master]
44982
+  (0.1ms) SAVEPOINT active_record_1 [shard 4578 master]
44983
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 4578 master]
44984
+  (0.1ms) ROLLBACK [shard 4580 master]
44985
+  (0.1ms) ROLLBACK [shard 4578 master]
44986
+  (0.0ms) BEGIN [shard 4578 master]
44987
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4578 master]
44988
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4579]] [shard 4578 master]
44989
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4580]] [shard 4578 master]
44990
+  (0.1ms) BEGIN [shard 4580 master]
44991
+ Switchman::Shard Load (0.2ms) 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 [shard 4578 master]
44992
+  (0.1ms) SAVEPOINT active_record_1 [shard 4578 master]
44993
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 4578 master]
44994
+  (0.1ms) CREATE SCHEMA switchman_test_shard_4583 [shard 4583 deploy]
44995
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4583 deploy]
44996
+  (5.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4583 deploy]
44997
+  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4583 deploy]
44998
+ Migrating to CreateUsers (20130403132607)
44999
+  (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 4583 deploy]
45000
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4583 deploy]
45001
+ Migrating to CreateAppendages (20130411202442)
45002
+  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4583 deploy]
45003
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4583 deploy]
45004
+ Migrating to CreateMirrorUsers (20130411202551)
45005
+  (3.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4583 deploy]
45006
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4583 deploy]
45007
+ Migrating to CreateDigits (20131022202028)
45008
+  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4583 deploy]
45009
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4583 deploy]
45010
+ Migrating to CreateFeatures (20131206172923)
45011
+  (1.6ms) 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 4583 deploy]
45012
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4583 deploy]
45013
+ Migrating to AddParentIdToUsers (20140123154135)
45014
+  (0.1ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4583 deploy]
45015
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4583 deploy]
45016
+ Migrating to CreateRoots (20140219183820)
45017
+  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4583 deploy]
45018
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4583 deploy]
45019
+  (0.1ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4583' WHERE "switchman_shards"."id" = 4583 [shard 4578 master]
45020
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4578 master]
45021
+  (0.1ms) SAVEPOINT active_record_1 [shard 4583 master]
45022
+ SQL (2.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 12 Jun 2014 20:57:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 12 Jun 2014 20:57:36 UTC +00:00]] [shard 4583 master]
45023
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4583 master]
45024
+  (2.6ms) DROP SCHEMA switchman_test_shard_4583 CASCADE [shard 4583 deploy]
45025
+  (0.1ms) SAVEPOINT active_record_1 [shard 4578 master]
45026
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4583]] [shard 4578 master]
45027
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4578 master]
45028
+  (0.1ms) ROLLBACK [shard 4580 master]
45029
+  (19.9ms) ROLLBACK [shard 4578 master]
45030
+  (0.1ms) BEGIN [shard 4578 master]
45031
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4578]] [shard 4578 master]
45032
+  (0.3ms) COMMIT [shard 4578 master]
45033
+  (0.1ms) BEGIN [shard 4578 master]
45034
+ SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4579]] [shard 4578 master]
45035
+  (0.2ms) COMMIT [shard 4578 master]
45036
+  (0.0ms) BEGIN [shard 4578 master]
45037
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4580]] [shard 4578 master]
45038
+  (0.2ms) COMMIT [shard 4578 master]
45039
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4578 master]
45040
+  (0.1ms) BEGIN [shard 4578 master]
45041
+  (0.1ms) ROLLBACK [shard 4578 master]
45042
+  (0.0ms) BEGIN [shard 4578 master]
45043
+  (0.0ms) ROLLBACK [shard 4578 master]
45044
+  (4.4ms) DROP SCHEMA switchman_test_shard_4579 CASCADE [shard 4579 deploy]
45045
+  (0.1ms) BEGIN
45046
+  (0.1ms) COMMIT
45047
+  (5.5ms) DROP SCHEMA switchman_test_shard_4580 CASCADE [shard 4580 deploy]
45048
+  (0.2ms) BEGIN
45049
+  (0.1ms) COMMIT
45050
+ Connecting to database specified by database.yml
45051
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
45052
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
45053
+  (0.1ms) BEGIN
45054
+  (0.1ms) ROLLBACK
45055
+  (0.0ms) BEGIN
45056
+  (0.0ms) ROLLBACK
45057
+  (0.0ms) BEGIN
45058
+  (0.1ms) ROLLBACK
45059
+  (0.0ms) BEGIN
45060
+  (0.0ms) ROLLBACK
45061
+  (0.0ms) BEGIN
45062
+  (0.1ms) ROLLBACK
45063
+  (0.1ms) BEGIN
45064
+  (0.1ms) ROLLBACK
45065
+  (0.0ms) BEGIN
45066
+  (0.1ms) ROLLBACK
45067
+  (0.0ms) BEGIN
45068
+  (0.1ms) ROLLBACK
45069
+  (0.0ms) BEGIN
45070
+  (0.0ms) ROLLBACK
45071
+  (0.0ms) BEGIN
45072
+  (0.0ms) ROLLBACK
45073
+  (0.0ms) BEGIN
45074
+  (0.0ms) ROLLBACK
45075
+  (0.1ms) BEGIN
45076
+  (0.0ms) ROLLBACK
45077
+  (0.0ms) BEGIN
45078
+  (0.0ms) ROLLBACK
45079
+ SQL (0.7ms) DELETE FROM "switchman_shards"
45080
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
45081
+  (0.1ms) BEGIN
45082
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
45083
+ 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]]
45084
+  (1.8ms) COMMIT
45085
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
45086
+ Switchman::Shard Load (0.8ms) 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
45087
+  (0.1ms) BEGIN
45088
+ 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"]]
45089
+  (0.3ms) CREATE SCHEMA switchman_test_shard_4585 [shard 4585 deploy]
45090
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4585 deploy]
45091
+  (6.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4585 deploy]
45092
+  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4585 deploy]
45093
+ Migrating to CreateUsers (20130403132607)
45094
+  (2.7ms) 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 4585 deploy]
45095
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4585 deploy]
45096
+ Migrating to CreateAppendages (20130411202442)
45097
+  (2.3ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4585 deploy]
45098
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4585 deploy]
45099
+ Migrating to CreateMirrorUsers (20130411202551)
45100
+  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4585 deploy]
45101
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4585 deploy]
45102
+ Migrating to CreateDigits (20131022202028)
45103
+  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4585 deploy]
45104
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4585 deploy]
45105
+ Migrating to CreateFeatures (20131206172923)
45106
+  (1.7ms) 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 4585 deploy]
45107
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4585 deploy]
45108
+ Migrating to AddParentIdToUsers (20140123154135)
45109
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4585 deploy]
45110
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4585 deploy]
45111
+ Migrating to CreateRoots (20140219183820)
45112
+  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4585 deploy]
45113
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4585 deploy]
45114
+  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4585' WHERE "switchman_shards"."id" = 4585 [shard 4584 master]
45115
+  (1.2ms) COMMIT [shard 4584 master]
45116
+ 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 4584 master]
45117
+  (0.1ms) BEGIN [shard 4584 master]
45118
+ 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 4584 master]
45119
+  (0.3ms) COMMIT [shard 4584 master]
45120
+  (0.8ms) CREATE SCHEMA switchman_test_shard_4586 [shard 4586 deploy]
45121
+  (3.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4586 deploy]
45122
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4586 deploy]
45123
+  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4586 deploy]
45124
+ Migrating to CreateUsers (20130403132607)
45125
+  (0.1ms) BEGIN [shard 4586 deploy]
45126
+  (2.3ms) 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 4586 deploy]
45127
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4586 deploy]
45128
+  (0.3ms) COMMIT [shard 4586 deploy]
45129
+ Migrating to CreateAppendages (20130411202442)
45130
+  (0.1ms) BEGIN [shard 4586 deploy]
45131
+  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4586 deploy]
45132
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4586 deploy]
45133
+  (0.3ms) COMMIT [shard 4586 deploy]
45134
+ Migrating to CreateMirrorUsers (20130411202551)
45135
+  (0.1ms) BEGIN [shard 4586 deploy]
45136
+  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4586 deploy]
45137
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4586 deploy]
45138
+  (0.3ms) COMMIT [shard 4586 deploy]
45139
+ Migrating to CreateDigits (20131022202028)
45140
+  (0.2ms) BEGIN [shard 4586 deploy]
45141
+  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4586 deploy]
45142
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4586 deploy]
45143
+  (0.3ms) COMMIT [shard 4586 deploy]
45144
+ Migrating to CreateFeatures (20131206172923)
45145
+  (0.1ms) BEGIN [shard 4586 deploy]
45146
+  (1.6ms) 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 4586 deploy]
45147
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4586 deploy]
45148
+  (0.3ms) COMMIT [shard 4586 deploy]
45149
+ Migrating to AddParentIdToUsers (20140123154135)
45150
+  (0.1ms) BEGIN [shard 4586 deploy]
45151
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4586 deploy]
45152
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4586 deploy]
45153
+  (0.2ms) COMMIT [shard 4586 deploy]
45154
+ Migrating to CreateRoots (20140219183820)
45155
+  (0.1ms) BEGIN [shard 4586 deploy]
45156
+  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4586 deploy]
45157
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4586 deploy]
45158
+  (0.3ms) COMMIT [shard 4586 deploy]
45159
+  (0.0ms) BEGIN [shard 4584 master]
45160
+  (0.1ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4586' WHERE "switchman_shards"."id" = 4586 [shard 4584 master]
45161
+  (0.3ms) COMMIT [shard 4584 master]
45162
+  (0.1ms) BEGIN [shard 4584 master]
45163
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4584 master]
45164
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4585]] [shard 4584 master]
45165
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4586]] [shard 4584 master]
45166
+  (0.1ms) BEGIN [shard 4586 master]
45167
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 4584 master]
45168
+  (0.1ms) SAVEPOINT active_record_1 [shard 4584 master]
45169
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 4584 master]
45170
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4584 master]
45171
+  (0.1ms) select sqlite_version(*) [shard 4587 deploy]
45172
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 4587 deploy]
45173
+  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4587 deploy]
45174
+  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4587 deploy]
45175
+ Migrating to CreateUsers (20130403132607)
45176
+  (0.0ms) begin transaction [shard 4587 deploy]
45177
+  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 4587 deploy]
45178
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4587 deploy]
45179
+  (0.7ms) commit transaction [shard 4587 deploy]
45180
+ Migrating to CreateAppendages (20130411202442)
45181
+  (0.0ms) begin transaction [shard 4587 deploy]
45182
+  (0.4ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 4587 deploy]
45183
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4587 deploy]
45184
+  (0.7ms) commit transaction [shard 4587 deploy]
45185
+ Migrating to CreateMirrorUsers (20130411202551)
45186
+  (0.0ms) begin transaction [shard 4587 deploy]
45187
+  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 4587 deploy]
45188
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4587 deploy]
45189
+  (0.8ms) commit transaction [shard 4587 deploy]
45190
+ Migrating to CreateDigits (20131022202028)
45191
+  (0.0ms) begin transaction [shard 4587 deploy]
45192
+  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 4587 deploy]
45193
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4587 deploy]
45194
+  (0.7ms) commit transaction [shard 4587 deploy]
45195
+ Migrating to CreateFeatures (20131206172923)
45196
+  (0.0ms) begin transaction [shard 4587 deploy]
45197
+  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 4587 deploy]
45198
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4587 deploy]
45199
+  (0.7ms) commit transaction [shard 4587 deploy]
45200
+ Migrating to AddParentIdToUsers (20140123154135)
45201
+  (0.0ms) begin transaction [shard 4587 deploy]
45202
+  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 4587 deploy]
45203
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4587 deploy]
45204
+  (0.7ms) commit transaction [shard 4587 deploy]
45205
+ Migrating to CreateRoots (20140219183820)
45206
+  (0.0ms) begin transaction [shard 4587 deploy]
45207
+  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 4587 deploy]
45208
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4587 deploy]
45209
+  (0.7ms) commit transaction [shard 4587 deploy]
45210
+  (0.1ms) SAVEPOINT active_record_1 [shard 4584 master]
45211
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_4587.sqlite3' WHERE "switchman_shards"."id" = 4587 [shard 4584 master]
45212
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4584 master]
45213
+  (0.0ms) begin transaction [shard 4587 master]
45214
+ SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 12 Jun 2014 20:57:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 12 Jun 2014 20:57:46 UTC +00:00]] [shard 4587 master]
45215
+  (0.6ms) commit transaction [shard 4587 master]
45216
+ Drop failed: No such file or directory - db/shard_4587.sqlite3
45217
+  (0.1ms) SAVEPOINT active_record_1 [shard 4584 master]
45218
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4587]] [shard 4584 master]
45219
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4584 master]
45220
+  (0.1ms) ROLLBACK [shard 4586 master]
45221
+  (0.1ms) ROLLBACK [shard 4584 master]
45222
+  (0.0ms) BEGIN [shard 4584 master]
45223
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4584 master]
45224
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4585]] [shard 4584 master]
45225
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4586]] [shard 4584 master]
45226
+  (0.0ms) BEGIN [shard 4586 master]
45227
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 4584 master]
45228
+  (0.0ms) SAVEPOINT active_record_1 [shard 4584 master]
45229
+ 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", "public"]] [shard 4584 master]
45230
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4584 master]
45231
+  (6.4ms) CREATE SCHEMA switchman_test_shard_4588 [shard 4588 deploy]
45232
+  (4.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4588 deploy]
45233
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4588 deploy]
45234
+  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4588 deploy]
45235
+ Migrating to CreateUsers (20130403132607)
45236
+  (0.1ms) BEGIN [shard 4588 deploy]
45237
+  (2.4ms) 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 4588 deploy]
45238
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4588 deploy]
45239
+  (0.3ms) COMMIT [shard 4588 deploy]
45240
+ Migrating to CreateAppendages (20130411202442)
45241
+  (0.1ms) BEGIN [shard 4588 deploy]
45242
+  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4588 deploy]
45243
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4588 deploy]
45244
+  (0.3ms) COMMIT [shard 4588 deploy]
45245
+ Migrating to CreateMirrorUsers (20130411202551)
45246
+  (0.1ms) BEGIN [shard 4588 deploy]
45247
+  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4588 deploy]
45248
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4588 deploy]
45249
+  (0.3ms) COMMIT [shard 4588 deploy]
45250
+ Migrating to CreateDigits (20131022202028)
45251
+  (0.1ms) BEGIN [shard 4588 deploy]
45252
+  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4588 deploy]
45253
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4588 deploy]
45254
+  (0.3ms) COMMIT [shard 4588 deploy]
45255
+ Migrating to CreateFeatures (20131206172923)
45256
+  (0.1ms) BEGIN [shard 4588 deploy]
45257
+  (1.9ms) 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 4588 deploy]
45258
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4588 deploy]
45259
+  (0.3ms) COMMIT [shard 4588 deploy]
45260
+ Migrating to AddParentIdToUsers (20140123154135)
45261
+  (0.1ms) BEGIN [shard 4588 deploy]
45262
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4588 deploy]
45263
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4588 deploy]
45264
+  (0.2ms) COMMIT [shard 4588 deploy]
45265
+ Migrating to CreateRoots (20140219183820)
45266
+  (0.1ms) BEGIN [shard 4588 deploy]
45267
+  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4588 deploy]
45268
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4588 deploy]
45269
+  (0.3ms) COMMIT [shard 4588 deploy]
45270
+  (0.1ms) SAVEPOINT active_record_1 [shard 4584 master]
45271
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4588' WHERE "switchman_shards"."id" = 4588 [shard 4584 master]
45272
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4584 master]
45273
+  (0.1ms) BEGIN [shard 4588 master]
45274
+ SQL (2.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 12 Jun 2014 20:57:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 12 Jun 2014 20:57:47 UTC +00:00]] [shard 4588 master]
45275
+  (0.3ms) COMMIT [shard 4588 master]
45276
+  (23.2ms) DROP SCHEMA switchman_test_shard_4588 CASCADE [shard 4588 deploy]
45277
+  (0.1ms) SAVEPOINT active_record_1 [shard 4584 master]
45278
+ SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4588]] [shard 4584 master]
45279
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4584 master]
45280
+  (0.1ms) ROLLBACK [shard 4586 master]
45281
+  (0.1ms) ROLLBACK [shard 4584 master]
45282
+  (0.1ms) BEGIN [shard 4584 master]
45283
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4584 master]
45284
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4585]] [shard 4584 master]
45285
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4586]] [shard 4584 master]
45286
+  (0.0ms) BEGIN [shard 4586 master]
45287
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 4584 master]
45288
+  (0.1ms) SAVEPOINT active_record_1 [shard 4584 master]
45289
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 4584 master]
45290
+  (0.1ms) ROLLBACK [shard 4586 master]
45291
+  (0.1ms) ROLLBACK [shard 4584 master]
45292
+  (0.1ms) BEGIN [shard 4584 master]
45293
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4584 master]
45294
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4585]] [shard 4584 master]
45295
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4586]] [shard 4584 master]
45296
+  (0.1ms) BEGIN [shard 4586 master]
45297
+ Switchman::Shard Load (0.2ms) 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 [shard 4584 master]
45298
+  (0.0ms) SAVEPOINT active_record_1 [shard 4584 master]
45299
+ 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"]] [shard 4584 master]
45300
+  (0.1ms) CREATE SCHEMA switchman_test_shard_4589 [shard 4589 deploy]
45301
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4589 deploy]
45302
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4589 deploy]
45303
+  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4589 deploy]
45304
+ Migrating to CreateUsers (20130403132607)
45305
+  (1.8ms) 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 4589 deploy]
45306
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4589 deploy]
45307
+ Migrating to CreateAppendages (20130411202442)
45308
+  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4589 deploy]
45309
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4589 deploy]
45310
+ Migrating to CreateMirrorUsers (20130411202551)
45311
+  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4589 deploy]
45312
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4589 deploy]
45313
+ Migrating to CreateDigits (20131022202028)
45314
+  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4589 deploy]
45315
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4589 deploy]
45316
+ Migrating to CreateFeatures (20131206172923)
45317
+  (1.9ms) 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 4589 deploy]
45318
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4589 deploy]
45319
+ Migrating to AddParentIdToUsers (20140123154135)
45320
+  (0.1ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4589 deploy]
45321
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4589 deploy]
45322
+ Migrating to CreateRoots (20140219183820)
45323
+  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4589 deploy]
45324
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4589 deploy]
45325
+  (0.1ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4589' WHERE "switchman_shards"."id" = 4589 [shard 4584 master]
45326
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4584 master]
45327
+  (0.1ms) SAVEPOINT active_record_1 [shard 4589 master]
45328
+ SQL (2.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 12 Jun 2014 20:57:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 12 Jun 2014 20:57:47 UTC +00:00]] [shard 4589 master]
45329
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4589 master]
45330
+  (2.7ms) DROP SCHEMA switchman_test_shard_4589 CASCADE [shard 4589 deploy]
45331
+  (0.1ms) SAVEPOINT active_record_1 [shard 4584 master]
45332
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4589]] [shard 4584 master]
45333
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4584 master]
45334
+  (0.1ms) ROLLBACK [shard 4586 master]
45335
+  (28.1ms) ROLLBACK [shard 4584 master]
45336
+  (0.1ms) BEGIN [shard 4584 master]
45337
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4584]] [shard 4584 master]
45338
+  (0.4ms) COMMIT [shard 4584 master]
45339
+  (0.1ms) BEGIN [shard 4584 master]
45340
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4585]] [shard 4584 master]
45341
+  (0.3ms) COMMIT [shard 4584 master]
45342
+  (0.1ms) BEGIN [shard 4584 master]
45343
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4586]] [shard 4584 master]
45344
+  (0.3ms) COMMIT [shard 4584 master]
45345
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4584 master]
45346
+  (0.1ms) BEGIN [shard 4584 master]
45347
+  (0.1ms) ROLLBACK [shard 4584 master]
45348
+  (0.0ms) BEGIN [shard 4584 master]
45349
+  (0.1ms) ROLLBACK [shard 4584 master]
45350
+  (5.8ms) DROP SCHEMA switchman_test_shard_4585 CASCADE [shard 4585 deploy]
45351
+  (0.0ms) BEGIN
45352
+  (0.0ms) COMMIT
45353
+  (5.5ms) DROP SCHEMA switchman_test_shard_4586 CASCADE [shard 4586 deploy]
45354
+  (0.2ms) BEGIN
45355
+  (0.0ms) COMMIT
@@ -31,6 +31,12 @@ module Switchman
31
31
  db.shareable?.should be_false
32
32
  ::Shackles.activate(:deploy) { db.shareable? }.should be_true
33
33
  end
34
+
35
+ it "should handle string keys" do
36
+ db = DatabaseServer.new(config: { adapter: 'postgresql', username: '%{schema_search_path}', deploy: { 'username' => 'deploy' }})
37
+ db.shareable?.should be_false
38
+ ::Shackles.activate(:deploy) { db.shareable? }.should be_true
39
+ end
34
40
  end
35
41
 
36
42
  describe "#create_new_shard" do
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.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
@@ -207,6 +207,8 @@ files:
207
207
  - spec/dummy/db/shard_4521.sqlite3
208
208
  - spec/dummy/db/shard_4549.sqlite3
209
209
  - spec/dummy/db/shard_4573.sqlite3
210
+ - spec/dummy/db/shard_4582.sqlite3
211
+ - spec/dummy/db/shard_4587.sqlite3
210
212
  - spec/dummy/db/switchman_test.sqlite3
211
213
  - spec/dummy/log/development.log
212
214
  - spec/dummy/log/test.log
@@ -1183,6 +1185,8 @@ test_files:
1183
1185
  - spec/dummy/db/shard_4521.sqlite3
1184
1186
  - spec/dummy/db/shard_4549.sqlite3
1185
1187
  - spec/dummy/db/shard_4573.sqlite3
1188
+ - spec/dummy/db/shard_4582.sqlite3
1189
+ - spec/dummy/db/shard_4587.sqlite3
1186
1190
  - spec/dummy/db/switchman_test.sqlite3
1187
1191
  - spec/dummy/log/development.log
1188
1192
  - spec/dummy/log/test.log