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