switchman 1.2.13 → 1.2.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c42fe24a528e52a66863dec71ddedea418db67ef
4
- data.tar.gz: 7bfb9e2f497bc3aa2da526c3dc935062e18de4ce
3
+ metadata.gz: 0c32ad11b8be2d936a3bbfdc68cbeba5eb91425e
4
+ data.tar.gz: ba691633f858742a84a25680cf7caeb8f0e96fb5
5
5
  SHA512:
6
- metadata.gz: caae1ea35140146f3c38105eea77d6aaef1a519b76f4f7fac844f3d783bbf9b8b570950228368334c2717df6d69af2bb19e48f671f16ae0ee1373c2335b27db4
7
- data.tar.gz: 2da783ea1de3ebbae72703b85792ce607181edf97ef7b84928c47f649b1ddb6c72b95aa584be6ec723fc470e8a7a295d05e09d2967fbb7e4764b33f0fb313192
6
+ metadata.gz: 39db6fdf61013c64483ff39d8498db1e1e429870f19287e3f610c2e8abe9d059b23db5e13788fe2f150b6b6ebb3b89bf7aed63e3367aebcf560be9309c977f3a
7
+ data.tar.gz: dca8f12ba8f39a2fa10ad8417690d2502165914cdf55e72a4e59a4055f480ecb9f8699560f3bf4791305b9b439c8d4a2da08f264aa488e599e421e38caabdfda
@@ -0,0 +1,10 @@
1
+ module Switchman
2
+ module ActiveRecord
3
+ module Persistence
4
+ # touch reads the id attribute directly, so it's not relative to the current shard
5
+ def touch(*)
6
+ shard.activate(self.class.shard_category) { super }
7
+ end
8
+ end
9
+ end
10
+ end
@@ -2,6 +2,20 @@ module Switchman
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace Switchman
4
4
 
5
+ def self.lookup_stores(cache_store_config)
6
+ result = {}
7
+ cache_store_config.each do |key, value|
8
+ next if value.is_a?(String)
9
+ result[key] = ::ActiveSupport::Cache.lookup_store(value)
10
+ end
11
+
12
+ cache_store_config.each do |key, value|
13
+ next unless value.is_a?(String)
14
+ result[key] = result[value]
15
+ end
16
+ result
17
+ end
18
+
5
19
  initializer 'switchman.initialize_cache', :before => 'initialize_cache' do
6
20
  require "switchman/active_support/cache"
7
21
  ::ActiveSupport::Cache::Store.send(:include, ActiveSupport::Cache::Store)
@@ -17,14 +31,7 @@ module Switchman
17
31
  cache_store_config = {::Rails.env => cache_store_config}
18
32
  end
19
33
 
20
- Switchman.config[:cache_map] = {}
21
- cache_store_config.each do |key, value|
22
- value = ::ActiveSupport::Cache.lookup_store(value)
23
- Switchman.config[:cache_map][key] = value
24
- if value.respond_to?(:middleware)
25
- config.middleware.insert_before("Rack::Runtime", value.middleware)
26
- end
27
- end
34
+ Switchman.config[:cache_map] = Engine.lookup_stores(cache_store_config)
28
35
  end
29
36
 
30
37
  # if the configured cache map (either from before, or as populated from
@@ -34,9 +41,13 @@ module Switchman
34
41
  unless Switchman.config[:cache_map].has_key?(::Rails.env)
35
42
  value = ::ActiveSupport::Cache.lookup_store(nil)
36
43
  Switchman.config[:cache_map][::Rails.env] = value
37
- if value.respond_to?(:middleware)
38
- config.middleware.insert_before("Rack::Runtime", value.middleware)
39
- end
44
+ end
45
+
46
+ middlewares = Switchman.config[:cache_map].values.map do |store|
47
+ value.middleware if value.respond_to?(:middleware)
48
+ end.compact.uniq
49
+ middlewares.each do |middleware|
50
+ config.middleware.insert_before("Rack::Runtime", middleware)
40
51
  end
41
52
 
42
53
  # prevent :initialize_cache from trying to (or needing to) set
@@ -65,6 +76,7 @@ module Switchman
65
76
  require "switchman/active_record/connection_pool"
66
77
  require "switchman/active_record/finder_methods"
67
78
  require "switchman/active_record/log_subscriber"
79
+ require "switchman/active_record/persistence"
68
80
  require "switchman/active_record/query_cache"
69
81
  require "switchman/active_record/query_methods"
70
82
  require "switchman/active_record/relation"
@@ -72,6 +84,7 @@ module Switchman
72
84
 
73
85
  include ActiveRecord::Base
74
86
  include ActiveRecord::AttributeMethods
87
+ include ActiveRecord::Persistence
75
88
  ::ActiveRecord::Associations::Association.send(:include, ActiveRecord::Association)
76
89
  ::ActiveRecord::Associations::BelongsToAssociation.send(:include, ActiveRecord::BelongsToAssociation)
77
90
  ::ActiveRecord::Associations::CollectionProxy.send(:include, ActiveRecord::CollectionProxy)
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.2.13"
2
+ VERSION = "1.2.14"
3
3
  end
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -92,3 +92,10 @@ Migrating to CreateRoots (20140219183820)
92
92
   (0.3ms) SELECT * FROM unnest(current_schemas(false)) [shard master]
93
93
  Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1
94
94
  Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1 master]
95
+ Connecting to database specified by database.yml
96
+  (6.1ms) SELECT * FROM unnest(current_schemas(false))
97
+ Switchman::Shard Load (1.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
98
+  (0.3ms) SELECT * FROM unnest(current_schemas(false))
99
+ Switchman::Shard Load (1.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1
100
+  (0.4ms) SELECT * FROM unnest(current_schemas(false)) [shard master]
101
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL LIMIT 1
@@ -107102,3 +107102,18067 @@ Migrating to CreateRoots (20140219183820)
107102
107102
   (0.2ms) BEGIN
107103
107103
  SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 847]]
107104
107104
   (0.1ms) COMMIT
107105
+ Connecting to database specified by database.yml
107106
+  (8.6ms) SELECT * FROM unnest(current_schemas(false))
107107
+ Switchman::Shard Load (1.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107108
+ SQL (0.5ms) DELETE FROM "switchman_shards"
107109
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107110
+  (0.1ms) BEGIN
107111
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107112
+ SQL (2.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]
107113
+  (0.3ms) COMMIT
107114
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107115
+ Switchman::Shard Load (1.4ms) 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
107116
+  (0.1ms) BEGIN
107117
+ 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"]]
107118
+  (1.6ms) CREATE SCHEMA switchman_test_shard_851 [shard 851 deploy]
107119
+  (10.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 851 deploy]
107120
+  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 851 deploy]
107121
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 851 deploy]
107122
+ Migrating to CreateUsers (20130403132607)
107123
+  (31.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 851 deploy]
107124
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 851 deploy]
107125
+ Migrating to CreateAppendages (20130411202442)
107126
+  (29.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 851 deploy]
107127
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 851 deploy]
107128
+ Migrating to CreateMirrorUsers (20130411202551)
107129
+  (7.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 851 deploy]
107130
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 851 deploy]
107131
+ Migrating to CreateDigits (20131022202028)
107132
+  (13.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 851 deploy]
107133
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 851 deploy]
107134
+ Migrating to CreateFeatures (20131206172923)
107135
+  (7.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 851 deploy]
107136
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 851 deploy]
107137
+ Migrating to AddParentIdToUsers (20140123154135)
107138
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 851 deploy]
107139
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 851 deploy]
107140
+ Migrating to CreateRoots (20140219183820)
107141
+  (7.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 851 deploy]
107142
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 851 deploy]
107143
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_851' WHERE "switchman_shards"."id" = 851 [shard 850 master]
107144
+  (7.2ms) COMMIT [shard 850 master]
107145
+ Switchman::Shard Load (5.3ms) 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 850 master]
107146
+  (0.1ms) BEGIN [shard 850 master]
107147
+ 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 850 master]
107148
+  (0.2ms) COMMIT [shard 850 master]
107149
+  (0.6ms) CREATE SCHEMA switchman_test_shard_852 [shard 852 deploy]
107150
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 852 deploy]
107151
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 852 deploy]
107152
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 852 deploy]
107153
+ Migrating to CreateUsers (20130403132607)
107154
+  (0.1ms) BEGIN [shard 852 deploy]
107155
+  (3.2ms) 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 852 deploy]
107156
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 852 deploy]
107157
+  (0.6ms) COMMIT [shard 852 deploy]
107158
+ Migrating to CreateAppendages (20130411202442)
107159
+  (0.1ms) BEGIN [shard 852 deploy]
107160
+  (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 852 deploy]
107161
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 852 deploy]
107162
+  (0.3ms) COMMIT [shard 852 deploy]
107163
+ Migrating to CreateMirrorUsers (20130411202551)
107164
+  (0.1ms) BEGIN [shard 852 deploy]
107165
+  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 852 deploy]
107166
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 852 deploy]
107167
+  (0.3ms) COMMIT [shard 852 deploy]
107168
+ Migrating to CreateDigits (20131022202028)
107169
+  (0.1ms) BEGIN [shard 852 deploy]
107170
+  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 852 deploy]
107171
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 852 deploy]
107172
+  (0.3ms) COMMIT [shard 852 deploy]
107173
+ Migrating to CreateFeatures (20131206172923)
107174
+  (0.1ms) BEGIN [shard 852 deploy]
107175
+  (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 852 deploy]
107176
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 852 deploy]
107177
+  (0.3ms) COMMIT [shard 852 deploy]
107178
+ Migrating to AddParentIdToUsers (20140123154135)
107179
+  (0.1ms) BEGIN [shard 852 deploy]
107180
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 852 deploy]
107181
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 852 deploy]
107182
+  (0.3ms) COMMIT [shard 852 deploy]
107183
+ Migrating to CreateRoots (20140219183820)
107184
+  (0.1ms) BEGIN [shard 852 deploy]
107185
+  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 852 deploy]
107186
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 852 deploy]
107187
+  (0.3ms) COMMIT [shard 852 deploy]
107188
+  (0.1ms) BEGIN [shard 850 master]
107189
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_852' WHERE "switchman_shards"."id" = 852 [shard 850 master]
107190
+  (0.3ms) COMMIT [shard 850 master]
107191
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 850 master]
107192
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 850 master]
107193
+  (0.1ms) BEGIN [shard 850 master]
107194
+ Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 850 master]
107195
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 850], ["name", nil]] [shard 850 master]
107196
+  (0.2ms) COMMIT [shard 850 master]
107197
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 850 master]
107198
+  (0.0ms) BEGIN [shard 850 master]
107199
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 851], ["name", "switchman_test_shard_851"]] [shard 850 master]
107200
+  (0.2ms) COMMIT [shard 850 master]
107201
+  (0.0ms) BEGIN [shard 850 master]
107202
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 852], ["name", "switchman_test_shard_852"]] [shard 850 master]
107203
+  (0.2ms) COMMIT [shard 850 master]
107204
+  (0.1ms) BEGIN [shard 850 master]
107205
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 850 master]
107206
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 851]] [shard 850 master]
107207
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 852]] [shard 850 master]
107208
+  (0.1ms) BEGIN [shard 852 master]
107209
+  (0.0ms) SAVEPOINT active_record_1 [shard 851 master]
107210
+ SQL (8.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:11:28 UTC +00:00]] [shard 851 master]
107211
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 851 master]
107212
+  (0.1ms) ROLLBACK [shard 852 master]
107213
+  (0.1ms) ROLLBACK [shard 851 master]
107214
+ SQL (10.9ms) DELETE FROM "switchman_shards" [shard 850 master]
107215
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 850 master]
107216
+  (11.1ms) DROP SCHEMA switchman_test_shard_851 CASCADE [shard 851 deploy]
107217
+  (0.1ms) BEGIN
107218
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 851]]
107219
+  (0.1ms) COMMIT
107220
+  (5.5ms) DROP SCHEMA switchman_test_shard_852 CASCADE [shard 852 deploy]
107221
+  (0.2ms) BEGIN
107222
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 852]]
107223
+  (0.1ms) COMMIT
107224
+ Connecting to database specified by database.yml
107225
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
107226
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107227
+ SQL (0.6ms) DELETE FROM "switchman_shards"
107228
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107229
+  (0.1ms) BEGIN
107230
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107231
+ SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]
107232
+  (0.4ms) COMMIT
107233
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107234
+ 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
107235
+  (0.1ms) BEGIN
107236
+ 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"]]
107237
+  (0.3ms) CREATE SCHEMA switchman_test_shard_854 [shard 854 deploy]
107238
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 854 deploy]
107239
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 854 deploy]
107240
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 854 deploy]
107241
+ Migrating to CreateUsers (20130403132607)
107242
+  (1.9ms) 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 854 deploy]
107243
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 854 deploy]
107244
+ Migrating to CreateAppendages (20130411202442)
107245
+  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 854 deploy]
107246
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 854 deploy]
107247
+ Migrating to CreateMirrorUsers (20130411202551)
107248
+  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 854 deploy]
107249
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 854 deploy]
107250
+ Migrating to CreateDigits (20131022202028)
107251
+  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 854 deploy]
107252
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 854 deploy]
107253
+ Migrating to CreateFeatures (20131206172923)
107254
+  (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 854 deploy]
107255
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 854 deploy]
107256
+ Migrating to AddParentIdToUsers (20140123154135)
107257
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 854 deploy]
107258
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 854 deploy]
107259
+ Migrating to CreateRoots (20140219183820)
107260
+  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 854 deploy]
107261
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 854 deploy]
107262
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_854' WHERE "switchman_shards"."id" = 854 [shard 853 master]
107263
+  (0.7ms) COMMIT [shard 853 master]
107264
+ 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 853 master]
107265
+  (0.1ms) BEGIN [shard 853 master]
107266
+ 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 853 master]
107267
+  (0.3ms) COMMIT [shard 853 master]
107268
+  (0.6ms) CREATE SCHEMA switchman_test_shard_855 [shard 855 deploy]
107269
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 855 deploy]
107270
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 855 deploy]
107271
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 855 deploy]
107272
+ Migrating to CreateUsers (20130403132607)
107273
+  (0.1ms) BEGIN [shard 855 deploy]
107274
+  (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 855 deploy]
107275
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 855 deploy]
107276
+  (0.2ms) COMMIT [shard 855 deploy]
107277
+ Migrating to CreateAppendages (20130411202442)
107278
+  (0.1ms) BEGIN [shard 855 deploy]
107279
+  (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 855 deploy]
107280
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 855 deploy]
107281
+  (0.3ms) COMMIT [shard 855 deploy]
107282
+ Migrating to CreateMirrorUsers (20130411202551)
107283
+  (0.1ms) BEGIN [shard 855 deploy]
107284
+  (2.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 855 deploy]
107285
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 855 deploy]
107286
+  (0.3ms) COMMIT [shard 855 deploy]
107287
+ Migrating to CreateDigits (20131022202028)
107288
+  (0.1ms) BEGIN [shard 855 deploy]
107289
+  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 855 deploy]
107290
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 855 deploy]
107291
+  (0.3ms) COMMIT [shard 855 deploy]
107292
+ Migrating to CreateFeatures (20131206172923)
107293
+  (0.1ms) BEGIN [shard 855 deploy]
107294
+  (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 855 deploy]
107295
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 855 deploy]
107296
+  (0.3ms) COMMIT [shard 855 deploy]
107297
+ Migrating to AddParentIdToUsers (20140123154135)
107298
+  (0.1ms) BEGIN [shard 855 deploy]
107299
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 855 deploy]
107300
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 855 deploy]
107301
+  (0.2ms) COMMIT [shard 855 deploy]
107302
+ Migrating to CreateRoots (20140219183820)
107303
+  (0.1ms) BEGIN [shard 855 deploy]
107304
+  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 855 deploy]
107305
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 855 deploy]
107306
+  (0.3ms) COMMIT [shard 855 deploy]
107307
+  (0.1ms) BEGIN [shard 853 master]
107308
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_855' WHERE "switchman_shards"."id" = 855 [shard 853 master]
107309
+  (0.3ms) COMMIT [shard 853 master]
107310
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 853 master]
107311
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 853 master]
107312
+  (0.1ms) BEGIN [shard 853 master]
107313
+ Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 853 master]
107314
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 853], ["name", nil]] [shard 853 master]
107315
+  (0.2ms) COMMIT [shard 853 master]
107316
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 853 master]
107317
+  (0.1ms) BEGIN [shard 853 master]
107318
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 854], ["name", "switchman_test_shard_854"]] [shard 853 master]
107319
+  (0.3ms) COMMIT [shard 853 master]
107320
+  (0.1ms) BEGIN [shard 853 master]
107321
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 855], ["name", "switchman_test_shard_855"]] [shard 853 master]
107322
+  (0.3ms) COMMIT [shard 853 master]
107323
+  (0.1ms) BEGIN [shard 853 master]
107324
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 853 master]
107325
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 854]] [shard 853 master]
107326
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 855]] [shard 853 master]
107327
+  (0.1ms) BEGIN [shard 855 master]
107328
+  (0.1ms) SAVEPOINT active_record_1 [shard 854 master]
107329
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:11:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:11:54 UTC +00:00]] [shard 854 master]
107330
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 854 master]
107331
+  (0.1ms) ROLLBACK [shard 855 master]
107332
+  (0.1ms) ROLLBACK [shard 854 master]
107333
+ SQL (0.4ms) DELETE FROM "switchman_shards" [shard 853 master]
107334
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 853 master]
107335
+  (4.8ms) DROP SCHEMA switchman_test_shard_854 CASCADE [shard 854 deploy]
107336
+  (0.1ms) BEGIN
107337
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 854]]
107338
+  (0.1ms) COMMIT
107339
+  (5.8ms) DROP SCHEMA switchman_test_shard_855 CASCADE [shard 855 deploy]
107340
+  (0.2ms) BEGIN
107341
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 855]]
107342
+  (0.1ms) COMMIT
107343
+ Connecting to database specified by database.yml
107344
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
107345
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107346
+ SQL (0.6ms) DELETE FROM "switchman_shards"
107347
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107348
+  (0.1ms) BEGIN
107349
+ Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107350
+ 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]]
107351
+  (0.4ms) COMMIT
107352
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107353
+ 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
107354
+  (0.1ms) BEGIN
107355
+ 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"]]
107356
+  (0.2ms) CREATE SCHEMA switchman_test_shard_857 [shard 857 deploy]
107357
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 857 deploy]
107358
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 857 deploy]
107359
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 857 deploy]
107360
+ Migrating to CreateUsers (20130403132607)
107361
+  (2.5ms) 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 857 deploy]
107362
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 857 deploy]
107363
+ Migrating to CreateAppendages (20130411202442)
107364
+  (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 857 deploy]
107365
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 857 deploy]
107366
+ Migrating to CreateMirrorUsers (20130411202551)
107367
+  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 857 deploy]
107368
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 857 deploy]
107369
+ Migrating to CreateDigits (20131022202028)
107370
+  (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 857 deploy]
107371
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 857 deploy]
107372
+ Migrating to CreateFeatures (20131206172923)
107373
+  (2.0ms) 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 857 deploy]
107374
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 857 deploy]
107375
+ Migrating to AddParentIdToUsers (20140123154135)
107376
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 857 deploy]
107377
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 857 deploy]
107378
+ Migrating to CreateRoots (20140219183820)
107379
+  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 857 deploy]
107380
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 857 deploy]
107381
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_857' WHERE "switchman_shards"."id" = 857 [shard 856 master]
107382
+  (0.7ms) COMMIT [shard 856 master]
107383
+ 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 856 master]
107384
+  (0.1ms) BEGIN [shard 856 master]
107385
+ 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 856 master]
107386
+  (0.3ms) COMMIT [shard 856 master]
107387
+  (0.8ms) CREATE SCHEMA switchman_test_shard_858 [shard 858 deploy]
107388
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 858 deploy]
107389
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 858 deploy]
107390
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 858 deploy]
107391
+ Migrating to CreateUsers (20130403132607)
107392
+  (0.1ms) BEGIN [shard 858 deploy]
107393
+  (2.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 858 deploy]
107394
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 858 deploy]
107395
+  (0.3ms) COMMIT [shard 858 deploy]
107396
+ Migrating to CreateAppendages (20130411202442)
107397
+  (0.1ms) BEGIN [shard 858 deploy]
107398
+  (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 858 deploy]
107399
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 858 deploy]
107400
+  (0.3ms) COMMIT [shard 858 deploy]
107401
+ Migrating to CreateMirrorUsers (20130411202551)
107402
+  (0.1ms) BEGIN [shard 858 deploy]
107403
+  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 858 deploy]
107404
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 858 deploy]
107405
+  (0.3ms) COMMIT [shard 858 deploy]
107406
+ Migrating to CreateDigits (20131022202028)
107407
+  (0.1ms) BEGIN [shard 858 deploy]
107408
+  (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 858 deploy]
107409
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 858 deploy]
107410
+  (0.3ms) COMMIT [shard 858 deploy]
107411
+ Migrating to CreateFeatures (20131206172923)
107412
+  (0.2ms) BEGIN [shard 858 deploy]
107413
+  (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 858 deploy]
107414
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 858 deploy]
107415
+  (0.3ms) COMMIT [shard 858 deploy]
107416
+ Migrating to AddParentIdToUsers (20140123154135)
107417
+  (0.1ms) BEGIN [shard 858 deploy]
107418
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 858 deploy]
107419
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 858 deploy]
107420
+  (0.2ms) COMMIT [shard 858 deploy]
107421
+ Migrating to CreateRoots (20140219183820)
107422
+  (0.1ms) BEGIN [shard 858 deploy]
107423
+  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 858 deploy]
107424
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 858 deploy]
107425
+  (0.3ms) COMMIT [shard 858 deploy]
107426
+  (0.1ms) BEGIN [shard 856 master]
107427
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_858' WHERE "switchman_shards"."id" = 858 [shard 856 master]
107428
+  (0.3ms) COMMIT [shard 856 master]
107429
+ SQL (0.4ms) DELETE FROM "switchman_shards" [shard 856 master]
107430
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 856 master]
107431
+  (0.1ms) BEGIN [shard 856 master]
107432
+ Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 856 master]
107433
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 856], ["name", nil]] [shard 856 master]
107434
+  (0.3ms) COMMIT [shard 856 master]
107435
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 856 master]
107436
+  (0.0ms) BEGIN [shard 856 master]
107437
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 857], ["name", "switchman_test_shard_857"]] [shard 856 master]
107438
+  (0.3ms) COMMIT [shard 856 master]
107439
+  (0.1ms) BEGIN [shard 856 master]
107440
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 858], ["name", "switchman_test_shard_858"]] [shard 856 master]
107441
+  (0.3ms) COMMIT [shard 856 master]
107442
+  (0.1ms) BEGIN [shard 856 master]
107443
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 856 master]
107444
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 857]] [shard 856 master]
107445
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 858]] [shard 856 master]
107446
+  (0.1ms) BEGIN [shard 858 master]
107447
+  (0.1ms) SAVEPOINT active_record_1 [shard 857 master]
107448
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:13:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:13:08 UTC +00:00]] [shard 857 master]
107449
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 857 master]
107450
+  (0.1ms) ROLLBACK [shard 858 master]
107451
+  (0.1ms) ROLLBACK [shard 857 master]
107452
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 856 master]
107453
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 856 master]
107454
+  (4.6ms) DROP SCHEMA switchman_test_shard_857 CASCADE [shard 857 deploy]
107455
+  (0.0ms) BEGIN
107456
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 857]]
107457
+  (0.1ms) COMMIT
107458
+  (6.4ms) DROP SCHEMA switchman_test_shard_858 CASCADE [shard 858 deploy]
107459
+  (0.2ms) BEGIN
107460
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 858]]
107461
+  (0.1ms) COMMIT
107462
+ Connecting to database specified by database.yml
107463
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
107464
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107465
+ SQL (0.5ms) DELETE FROM "switchman_shards"
107466
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107467
+  (0.1ms) BEGIN
107468
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107469
+ 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]]
107470
+  (6.4ms) COMMIT
107471
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107472
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1
107473
+  (0.1ms) BEGIN
107474
+ 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"]]
107475
+  (0.3ms) CREATE SCHEMA switchman_test_shard_860 [shard 860 deploy]
107476
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 860 deploy]
107477
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 860 deploy]
107478
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 860 deploy]
107479
+ Migrating to CreateUsers (20130403132607)
107480
+  (2.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 860 deploy]
107481
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 860 deploy]
107482
+ Migrating to CreateAppendages (20130411202442)
107483
+  (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 860 deploy]
107484
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 860 deploy]
107485
+ Migrating to CreateMirrorUsers (20130411202551)
107486
+  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 860 deploy]
107487
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 860 deploy]
107488
+ Migrating to CreateDigits (20131022202028)
107489
+  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 860 deploy]
107490
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 860 deploy]
107491
+ Migrating to CreateFeatures (20131206172923)
107492
+  (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 860 deploy]
107493
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 860 deploy]
107494
+ Migrating to AddParentIdToUsers (20140123154135)
107495
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 860 deploy]
107496
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 860 deploy]
107497
+ Migrating to CreateRoots (20140219183820)
107498
+  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 860 deploy]
107499
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 860 deploy]
107500
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_860' WHERE "switchman_shards"."id" = 860 [shard 859 master]
107501
+  (0.7ms) COMMIT [shard 859 master]
107502
+ 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 859 master]
107503
+  (0.1ms) BEGIN [shard 859 master]
107504
+ 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 859 master]
107505
+  (0.3ms) COMMIT [shard 859 master]
107506
+  (0.5ms) CREATE SCHEMA switchman_test_shard_861 [shard 861 deploy]
107507
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 861 deploy]
107508
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 861 deploy]
107509
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 861 deploy]
107510
+ Migrating to CreateUsers (20130403132607)
107511
+  (0.1ms) BEGIN [shard 861 deploy]
107512
+  (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 861 deploy]
107513
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 861 deploy]
107514
+  (0.3ms) COMMIT [shard 861 deploy]
107515
+ Migrating to CreateAppendages (20130411202442)
107516
+  (0.1ms) BEGIN [shard 861 deploy]
107517
+  (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 861 deploy]
107518
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 861 deploy]
107519
+  (0.3ms) COMMIT [shard 861 deploy]
107520
+ Migrating to CreateMirrorUsers (20130411202551)
107521
+  (0.1ms) BEGIN [shard 861 deploy]
107522
+  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 861 deploy]
107523
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 861 deploy]
107524
+  (0.3ms) COMMIT [shard 861 deploy]
107525
+ Migrating to CreateDigits (20131022202028)
107526
+  (0.1ms) BEGIN [shard 861 deploy]
107527
+  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 861 deploy]
107528
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 861 deploy]
107529
+  (0.3ms) COMMIT [shard 861 deploy]
107530
+ Migrating to CreateFeatures (20131206172923)
107531
+  (0.1ms) BEGIN [shard 861 deploy]
107532
+  (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 861 deploy]
107533
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 861 deploy]
107534
+  (0.3ms) COMMIT [shard 861 deploy]
107535
+ Migrating to AddParentIdToUsers (20140123154135)
107536
+  (0.1ms) BEGIN [shard 861 deploy]
107537
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 861 deploy]
107538
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 861 deploy]
107539
+  (0.3ms) COMMIT [shard 861 deploy]
107540
+ Migrating to CreateRoots (20140219183820)
107541
+  (0.1ms) BEGIN [shard 861 deploy]
107542
+  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 861 deploy]
107543
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 861 deploy]
107544
+  (0.3ms) COMMIT [shard 861 deploy]
107545
+  (0.1ms) BEGIN [shard 859 master]
107546
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_861' WHERE "switchman_shards"."id" = 861 [shard 859 master]
107547
+  (0.3ms) COMMIT [shard 859 master]
107548
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 859 master]
107549
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 859 master]
107550
+  (0.1ms) BEGIN [shard 859 master]
107551
+ Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 859 master]
107552
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 859], ["name", nil]] [shard 859 master]
107553
+  (0.2ms) COMMIT [shard 859 master]
107554
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 859 master]
107555
+  (0.1ms) BEGIN [shard 859 master]
107556
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 860], ["name", "switchman_test_shard_860"]] [shard 859 master]
107557
+  (0.3ms) COMMIT [shard 859 master]
107558
+  (0.1ms) BEGIN [shard 859 master]
107559
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 861], ["name", "switchman_test_shard_861"]] [shard 859 master]
107560
+  (0.2ms) COMMIT [shard 859 master]
107561
+  (0.0ms) BEGIN [shard 859 master]
107562
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 859 master]
107563
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 860]] [shard 859 master]
107564
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 861]] [shard 859 master]
107565
+  (0.1ms) BEGIN [shard 861 master]
107566
+  (0.1ms) SAVEPOINT active_record_1 [shard 860 master]
107567
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:13:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:13:17 UTC +00:00]] [shard 860 master]
107568
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 860 master]
107569
+  (0.2ms) ROLLBACK [shard 861 master]
107570
+  (0.1ms) ROLLBACK [shard 860 master]
107571
+ SQL (0.5ms) DELETE FROM "switchman_shards" [shard 859 master]
107572
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 859 master]
107573
+  (5.1ms) DROP SCHEMA switchman_test_shard_860 CASCADE [shard 860 deploy]
107574
+  (0.1ms) BEGIN
107575
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 860]]
107576
+  (0.1ms) COMMIT
107577
+  (6.3ms) DROP SCHEMA switchman_test_shard_861 CASCADE [shard 861 deploy]
107578
+  (0.3ms) BEGIN
107579
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 861]]
107580
+  (0.1ms) COMMIT
107581
+ Connecting to database specified by database.yml
107582
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
107583
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107584
+ SQL (0.8ms) DELETE FROM "switchman_shards"
107585
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107586
+  (0.1ms) BEGIN
107587
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107588
+ 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]]
107589
+  (6.4ms) COMMIT
107590
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107591
+ 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
107592
+  (0.1ms) BEGIN
107593
+ 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"]]
107594
+  (0.2ms) CREATE SCHEMA switchman_test_shard_863 [shard 863 deploy]
107595
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 863 deploy]
107596
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 863 deploy]
107597
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 863 deploy]
107598
+ Migrating to CreateUsers (20130403132607)
107599
+  (3.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 863 deploy]
107600
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 863 deploy]
107601
+ Migrating to CreateAppendages (20130411202442)
107602
+  (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 863 deploy]
107603
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 863 deploy]
107604
+ Migrating to CreateMirrorUsers (20130411202551)
107605
+  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 863 deploy]
107606
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 863 deploy]
107607
+ Migrating to CreateDigits (20131022202028)
107608
+  (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 863 deploy]
107609
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 863 deploy]
107610
+ Migrating to CreateFeatures (20131206172923)
107611
+  (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 863 deploy]
107612
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 863 deploy]
107613
+ Migrating to AddParentIdToUsers (20140123154135)
107614
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 863 deploy]
107615
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 863 deploy]
107616
+ Migrating to CreateRoots (20140219183820)
107617
+  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 863 deploy]
107618
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 863 deploy]
107619
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_863' WHERE "switchman_shards"."id" = 863 [shard 862 master]
107620
+  (0.6ms) COMMIT [shard 862 master]
107621
+ 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 862 master]
107622
+  (0.1ms) BEGIN [shard 862 master]
107623
+ 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 862 master]
107624
+  (0.2ms) COMMIT [shard 862 master]
107625
+  (0.6ms) CREATE SCHEMA switchman_test_shard_864 [shard 864 deploy]
107626
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 864 deploy]
107627
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 864 deploy]
107628
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 864 deploy]
107629
+ Migrating to CreateUsers (20130403132607)
107630
+  (0.1ms) BEGIN [shard 864 deploy]
107631
+  (1.9ms) 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 864 deploy]
107632
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 864 deploy]
107633
+  (0.3ms) COMMIT [shard 864 deploy]
107634
+ Migrating to CreateAppendages (20130411202442)
107635
+  (0.1ms) BEGIN [shard 864 deploy]
107636
+  (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 864 deploy]
107637
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 864 deploy]
107638
+  (0.4ms) COMMIT [shard 864 deploy]
107639
+ Migrating to CreateMirrorUsers (20130411202551)
107640
+  (0.1ms) BEGIN [shard 864 deploy]
107641
+  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 864 deploy]
107642
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 864 deploy]
107643
+  (0.3ms) COMMIT [shard 864 deploy]
107644
+ Migrating to CreateDigits (20131022202028)
107645
+  (0.1ms) BEGIN [shard 864 deploy]
107646
+  (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 864 deploy]
107647
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 864 deploy]
107648
+  (0.3ms) COMMIT [shard 864 deploy]
107649
+ Migrating to CreateFeatures (20131206172923)
107650
+  (0.1ms) BEGIN [shard 864 deploy]
107651
+  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 864 deploy]
107652
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 864 deploy]
107653
+  (0.3ms) COMMIT [shard 864 deploy]
107654
+ Migrating to AddParentIdToUsers (20140123154135)
107655
+  (0.1ms) BEGIN [shard 864 deploy]
107656
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 864 deploy]
107657
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 864 deploy]
107658
+  (0.2ms) COMMIT [shard 864 deploy]
107659
+ Migrating to CreateRoots (20140219183820)
107660
+  (0.1ms) BEGIN [shard 864 deploy]
107661
+  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 864 deploy]
107662
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 864 deploy]
107663
+  (0.4ms) COMMIT [shard 864 deploy]
107664
+  (0.1ms) BEGIN [shard 862 master]
107665
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_864' WHERE "switchman_shards"."id" = 864 [shard 862 master]
107666
+  (0.3ms) COMMIT [shard 862 master]
107667
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 862 master]
107668
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 862 master]
107669
+  (0.1ms) BEGIN [shard 862 master]
107670
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 862 master]
107671
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 862], ["name", nil]] [shard 862 master]
107672
+  (0.2ms) COMMIT [shard 862 master]
107673
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 862 master]
107674
+  (0.1ms) BEGIN [shard 862 master]
107675
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 863], ["name", "switchman_test_shard_863"]] [shard 862 master]
107676
+  (0.2ms) COMMIT [shard 862 master]
107677
+  (0.0ms) BEGIN [shard 862 master]
107678
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 864], ["name", "switchman_test_shard_864"]] [shard 862 master]
107679
+  (0.2ms) COMMIT [shard 862 master]
107680
+  (0.0ms) BEGIN [shard 862 master]
107681
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 862 master]
107682
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 863]] [shard 862 master]
107683
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 864]] [shard 862 master]
107684
+  (0.1ms) BEGIN [shard 864 master]
107685
+  (0.1ms) SAVEPOINT active_record_1 [shard 863 master]
107686
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:13:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:13:33 UTC +00:00]] [shard 863 master]
107687
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 863 master]
107688
+  (0.1ms) ROLLBACK [shard 864 master]
107689
+  (0.1ms) ROLLBACK [shard 863 master]
107690
+ SQL (0.4ms) DELETE FROM "switchman_shards" [shard 862 master]
107691
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 862 master]
107692
+  (4.8ms) DROP SCHEMA switchman_test_shard_863 CASCADE [shard 863 deploy]
107693
+  (0.1ms) BEGIN
107694
+ SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 863]]
107695
+  (0.1ms) COMMIT
107696
+  (5.5ms) DROP SCHEMA switchman_test_shard_864 CASCADE [shard 864 deploy]
107697
+  (0.2ms) BEGIN
107698
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 864]]
107699
+  (0.1ms) COMMIT
107700
+ Connecting to database specified by database.yml
107701
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
107702
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107703
+ SQL (0.7ms) DELETE FROM "switchman_shards"
107704
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107705
+  (0.1ms) BEGIN
107706
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107707
+ 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]]
107708
+  (0.4ms) COMMIT
107709
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107710
+ 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
107711
+  (0.1ms) BEGIN
107712
+ 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"]]
107713
+  (0.3ms) CREATE SCHEMA switchman_test_shard_866 [shard 866 deploy]
107714
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 866 deploy]
107715
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 866 deploy]
107716
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 866 deploy]
107717
+ Migrating to CreateUsers (20130403132607)
107718
+  (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 866 deploy]
107719
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 866 deploy]
107720
+ Migrating to CreateAppendages (20130411202442)
107721
+  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 866 deploy]
107722
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 866 deploy]
107723
+ Migrating to CreateMirrorUsers (20130411202551)
107724
+  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 866 deploy]
107725
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 866 deploy]
107726
+ Migrating to CreateDigits (20131022202028)
107727
+  (1.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 866 deploy]
107728
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 866 deploy]
107729
+ Migrating to CreateFeatures (20131206172923)
107730
+  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 866 deploy]
107731
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 866 deploy]
107732
+ Migrating to AddParentIdToUsers (20140123154135)
107733
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 866 deploy]
107734
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 866 deploy]
107735
+ Migrating to CreateRoots (20140219183820)
107736
+  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 866 deploy]
107737
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 866 deploy]
107738
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_866' WHERE "switchman_shards"."id" = 866 [shard 865 master]
107739
+  (1.0ms) COMMIT [shard 865 master]
107740
+ 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 865 master]
107741
+  (0.1ms) BEGIN [shard 865 master]
107742
+ 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 865 master]
107743
+  (0.2ms) COMMIT [shard 865 master]
107744
+  (0.5ms) CREATE SCHEMA switchman_test_shard_867 [shard 867 deploy]
107745
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 867 deploy]
107746
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 867 deploy]
107747
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 867 deploy]
107748
+ Migrating to CreateUsers (20130403132607)
107749
+  (0.1ms) BEGIN [shard 867 deploy]
107750
+  (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 867 deploy]
107751
+  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 867 deploy]
107752
+  (0.3ms) COMMIT [shard 867 deploy]
107753
+ Migrating to CreateAppendages (20130411202442)
107754
+  (0.1ms) BEGIN [shard 867 deploy]
107755
+  (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 867 deploy]
107756
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 867 deploy]
107757
+  (0.3ms) COMMIT [shard 867 deploy]
107758
+ Migrating to CreateMirrorUsers (20130411202551)
107759
+  (0.1ms) BEGIN [shard 867 deploy]
107760
+  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 867 deploy]
107761
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 867 deploy]
107762
+  (0.3ms) COMMIT [shard 867 deploy]
107763
+ Migrating to CreateDigits (20131022202028)
107764
+  (0.1ms) BEGIN [shard 867 deploy]
107765
+  (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 867 deploy]
107766
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 867 deploy]
107767
+  (0.3ms) COMMIT [shard 867 deploy]
107768
+ Migrating to CreateFeatures (20131206172923)
107769
+  (0.2ms) BEGIN [shard 867 deploy]
107770
+  (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 867 deploy]
107771
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 867 deploy]
107772
+  (0.4ms) COMMIT [shard 867 deploy]
107773
+ Migrating to AddParentIdToUsers (20140123154135)
107774
+  (0.1ms) BEGIN [shard 867 deploy]
107775
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 867 deploy]
107776
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 867 deploy]
107777
+  (0.2ms) COMMIT [shard 867 deploy]
107778
+ Migrating to CreateRoots (20140219183820)
107779
+  (0.1ms) BEGIN [shard 867 deploy]
107780
+  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 867 deploy]
107781
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 867 deploy]
107782
+  (0.3ms) COMMIT [shard 867 deploy]
107783
+  (0.1ms) BEGIN [shard 865 master]
107784
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_867' WHERE "switchman_shards"."id" = 867 [shard 865 master]
107785
+  (0.3ms) COMMIT [shard 865 master]
107786
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 865 master]
107787
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 865 master]
107788
+  (0.1ms) BEGIN [shard 865 master]
107789
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 865 master]
107790
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 865], ["name", nil]] [shard 865 master]
107791
+  (0.3ms) COMMIT [shard 865 master]
107792
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 865 master]
107793
+  (0.0ms) BEGIN [shard 865 master]
107794
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 866], ["name", "switchman_test_shard_866"]] [shard 865 master]
107795
+  (0.2ms) COMMIT [shard 865 master]
107796
+  (0.1ms) BEGIN [shard 865 master]
107797
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 867], ["name", "switchman_test_shard_867"]] [shard 865 master]
107798
+  (0.2ms) COMMIT [shard 865 master]
107799
+  (0.1ms) BEGIN [shard 865 master]
107800
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 865 master]
107801
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 866]] [shard 865 master]
107802
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 867]] [shard 865 master]
107803
+  (0.1ms) BEGIN [shard 867 master]
107804
+  (0.1ms) SAVEPOINT active_record_1 [shard 866 master]
107805
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:18:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:18:16 UTC +00:00]] [shard 866 master]
107806
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 866 master]
107807
+  (0.1ms) ROLLBACK [shard 867 master]
107808
+  (0.1ms) ROLLBACK [shard 866 master]
107809
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 865 master]
107810
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 865 master]
107811
+  (5.3ms) DROP SCHEMA switchman_test_shard_866 CASCADE [shard 866 deploy]
107812
+  (0.1ms) BEGIN
107813
+ SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 866]]
107814
+  (0.1ms) COMMIT
107815
+  (7.0ms) DROP SCHEMA switchman_test_shard_867 CASCADE [shard 867 deploy]
107816
+  (0.2ms) BEGIN
107817
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 867]]
107818
+  (0.1ms) COMMIT
107819
+ Connecting to database specified by database.yml
107820
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
107821
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107822
+ SQL (0.5ms) DELETE FROM "switchman_shards"
107823
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107824
+  (0.1ms) BEGIN
107825
+ Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107826
+ SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]
107827
+  (0.5ms) COMMIT
107828
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107829
+ 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
107830
+  (0.1ms) BEGIN
107831
+ 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"]]
107832
+  (0.3ms) CREATE SCHEMA switchman_test_shard_869 [shard 869 deploy]
107833
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 869 deploy]
107834
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 869 deploy]
107835
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 869 deploy]
107836
+ Migrating to CreateUsers (20130403132607)
107837
+  (1.9ms) 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 869 deploy]
107838
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 869 deploy]
107839
+ Migrating to CreateAppendages (20130411202442)
107840
+  (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 869 deploy]
107841
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 869 deploy]
107842
+ Migrating to CreateMirrorUsers (20130411202551)
107843
+  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 869 deploy]
107844
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 869 deploy]
107845
+ Migrating to CreateDigits (20131022202028)
107846
+  (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 869 deploy]
107847
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 869 deploy]
107848
+ Migrating to CreateFeatures (20131206172923)
107849
+  (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 869 deploy]
107850
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 869 deploy]
107851
+ Migrating to AddParentIdToUsers (20140123154135)
107852
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 869 deploy]
107853
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 869 deploy]
107854
+ Migrating to CreateRoots (20140219183820)
107855
+  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 869 deploy]
107856
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 869 deploy]
107857
+  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_869' WHERE "switchman_shards"."id" = 869 [shard 868 master]
107858
+  (0.9ms) COMMIT [shard 868 master]
107859
+ 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 868 master]
107860
+  (0.1ms) BEGIN [shard 868 master]
107861
+ 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 868 master]
107862
+  (0.2ms) COMMIT [shard 868 master]
107863
+  (0.6ms) CREATE SCHEMA switchman_test_shard_870 [shard 870 deploy]
107864
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 870 deploy]
107865
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 870 deploy]
107866
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 870 deploy]
107867
+ Migrating to CreateUsers (20130403132607)
107868
+  (0.1ms) BEGIN [shard 870 deploy]
107869
+  (1.9ms) 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 870 deploy]
107870
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 870 deploy]
107871
+  (0.3ms) COMMIT [shard 870 deploy]
107872
+ Migrating to CreateAppendages (20130411202442)
107873
+  (0.1ms) BEGIN [shard 870 deploy]
107874
+  (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 870 deploy]
107875
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 870 deploy]
107876
+  (0.3ms) COMMIT [shard 870 deploy]
107877
+ Migrating to CreateMirrorUsers (20130411202551)
107878
+  (0.2ms) BEGIN [shard 870 deploy]
107879
+  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 870 deploy]
107880
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 870 deploy]
107881
+  (0.3ms) COMMIT [shard 870 deploy]
107882
+ Migrating to CreateDigits (20131022202028)
107883
+  (0.1ms) BEGIN [shard 870 deploy]
107884
+  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 870 deploy]
107885
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 870 deploy]
107886
+  (0.3ms) COMMIT [shard 870 deploy]
107887
+ Migrating to CreateFeatures (20131206172923)
107888
+  (0.1ms) BEGIN [shard 870 deploy]
107889
+  (2.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 870 deploy]
107890
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 870 deploy]
107891
+  (0.3ms) COMMIT [shard 870 deploy]
107892
+ Migrating to AddParentIdToUsers (20140123154135)
107893
+  (0.1ms) BEGIN [shard 870 deploy]
107894
+  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 870 deploy]
107895
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 870 deploy]
107896
+  (0.2ms) COMMIT [shard 870 deploy]
107897
+ Migrating to CreateRoots (20140219183820)
107898
+  (0.1ms) BEGIN [shard 870 deploy]
107899
+  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 870 deploy]
107900
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 870 deploy]
107901
+  (0.3ms) COMMIT [shard 870 deploy]
107902
+  (0.1ms) BEGIN [shard 868 master]
107903
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_870' WHERE "switchman_shards"."id" = 870 [shard 868 master]
107904
+  (0.3ms) COMMIT [shard 868 master]
107905
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 868 master]
107906
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 868 master]
107907
+  (0.1ms) BEGIN [shard 868 master]
107908
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 868 master]
107909
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 868], ["name", nil]] [shard 868 master]
107910
+  (0.2ms) COMMIT [shard 868 master]
107911
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 868 master]
107912
+  (0.1ms) BEGIN [shard 868 master]
107913
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 869], ["name", "switchman_test_shard_869"]] [shard 868 master]
107914
+  (0.2ms) COMMIT [shard 868 master]
107915
+  (0.1ms) BEGIN [shard 868 master]
107916
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 870], ["name", "switchman_test_shard_870"]] [shard 868 master]
107917
+  (0.2ms) COMMIT [shard 868 master]
107918
+  (0.1ms) BEGIN [shard 868 master]
107919
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 868 master]
107920
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 869]] [shard 868 master]
107921
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 870]] [shard 868 master]
107922
+  (0.1ms) BEGIN [shard 870 master]
107923
+  (0.1ms) SAVEPOINT active_record_1 [shard 869 master]
107924
+ SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:18:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:18:57 UTC +00:00]] [shard 869 master]
107925
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 869 master]
107926
+  (0.1ms) ROLLBACK [shard 870 master]
107927
+  (0.1ms) ROLLBACK [shard 869 master]
107928
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 868 master]
107929
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 868 master]
107930
+  (5.0ms) DROP SCHEMA switchman_test_shard_869 CASCADE [shard 869 deploy]
107931
+  (0.1ms) BEGIN
107932
+ SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 869]]
107933
+  (0.1ms) COMMIT
107934
+  (5.8ms) DROP SCHEMA switchman_test_shard_870 CASCADE [shard 870 deploy]
107935
+  (0.2ms) BEGIN
107936
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 870]]
107937
+  (0.1ms) COMMIT
107938
+ Connecting to database specified by database.yml
107939
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
107940
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107941
+ SQL (0.5ms) DELETE FROM "switchman_shards"
107942
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107943
+  (0.1ms) BEGIN
107944
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107945
+ SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]
107946
+  (6.5ms) COMMIT
107947
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
107948
+ Switchman::Shard Load (0.9ms) 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
107949
+  (0.1ms) BEGIN
107950
+ 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"]]
107951
+  (0.3ms) CREATE SCHEMA switchman_test_shard_872 [shard 872 deploy]
107952
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 872 deploy]
107953
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 872 deploy]
107954
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 872 deploy]
107955
+ Migrating to CreateUsers (20130403132607)
107956
+  (2.2ms) 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 872 deploy]
107957
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 872 deploy]
107958
+ Migrating to CreateAppendages (20130411202442)
107959
+  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 872 deploy]
107960
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 872 deploy]
107961
+ Migrating to CreateMirrorUsers (20130411202551)
107962
+  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 872 deploy]
107963
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 872 deploy]
107964
+ Migrating to CreateDigits (20131022202028)
107965
+  (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 872 deploy]
107966
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 872 deploy]
107967
+ Migrating to CreateFeatures (20131206172923)
107968
+  (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 872 deploy]
107969
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 872 deploy]
107970
+ Migrating to AddParentIdToUsers (20140123154135)
107971
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 872 deploy]
107972
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 872 deploy]
107973
+ Migrating to CreateRoots (20140219183820)
107974
+  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 872 deploy]
107975
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 872 deploy]
107976
+  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_872' WHERE "switchman_shards"."id" = 872 [shard 871 master]
107977
+  (0.8ms) COMMIT [shard 871 master]
107978
+ 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 871 master]
107979
+  (0.1ms) BEGIN [shard 871 master]
107980
+ 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 871 master]
107981
+  (0.3ms) COMMIT [shard 871 master]
107982
+  (0.6ms) CREATE SCHEMA switchman_test_shard_873 [shard 873 deploy]
107983
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 873 deploy]
107984
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 873 deploy]
107985
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 873 deploy]
107986
+ Migrating to CreateUsers (20130403132607)
107987
+  (0.1ms) BEGIN [shard 873 deploy]
107988
+  (1.9ms) 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 873 deploy]
107989
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 873 deploy]
107990
+  (0.3ms) COMMIT [shard 873 deploy]
107991
+ Migrating to CreateAppendages (20130411202442)
107992
+  (0.1ms) BEGIN [shard 873 deploy]
107993
+  (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 873 deploy]
107994
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 873 deploy]
107995
+  (0.3ms) COMMIT [shard 873 deploy]
107996
+ Migrating to CreateMirrorUsers (20130411202551)
107997
+  (0.1ms) BEGIN [shard 873 deploy]
107998
+  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 873 deploy]
107999
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 873 deploy]
108000
+  (0.3ms) COMMIT [shard 873 deploy]
108001
+ Migrating to CreateDigits (20131022202028)
108002
+  (0.1ms) BEGIN [shard 873 deploy]
108003
+  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 873 deploy]
108004
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 873 deploy]
108005
+  (0.3ms) COMMIT [shard 873 deploy]
108006
+ Migrating to CreateFeatures (20131206172923)
108007
+  (0.1ms) BEGIN [shard 873 deploy]
108008
+  (2.0ms) 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 873 deploy]
108009
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 873 deploy]
108010
+  (0.3ms) COMMIT [shard 873 deploy]
108011
+ Migrating to AddParentIdToUsers (20140123154135)
108012
+  (0.1ms) BEGIN [shard 873 deploy]
108013
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 873 deploy]
108014
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 873 deploy]
108015
+  (0.2ms) COMMIT [shard 873 deploy]
108016
+ Migrating to CreateRoots (20140219183820)
108017
+  (0.1ms) BEGIN [shard 873 deploy]
108018
+  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 873 deploy]
108019
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 873 deploy]
108020
+  (0.3ms) COMMIT [shard 873 deploy]
108021
+  (0.1ms) BEGIN [shard 871 master]
108022
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_873' WHERE "switchman_shards"."id" = 873 [shard 871 master]
108023
+  (0.3ms) COMMIT [shard 871 master]
108024
+ SQL (0.4ms) DELETE FROM "switchman_shards" [shard 871 master]
108025
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 871 master]
108026
+  (0.1ms) BEGIN [shard 871 master]
108027
+ Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 871 master]
108028
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 871], ["name", nil]] [shard 871 master]
108029
+  (0.3ms) COMMIT [shard 871 master]
108030
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 871 master]
108031
+  (0.1ms) BEGIN [shard 871 master]
108032
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 872], ["name", "switchman_test_shard_872"]] [shard 871 master]
108033
+  (0.2ms) COMMIT [shard 871 master]
108034
+  (0.1ms) BEGIN [shard 871 master]
108035
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 873], ["name", "switchman_test_shard_873"]] [shard 871 master]
108036
+  (0.3ms) COMMIT [shard 871 master]
108037
+  (0.0ms) BEGIN [shard 871 master]
108038
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 871 master]
108039
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 872]] [shard 871 master]
108040
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 873]] [shard 871 master]
108041
+  (0.1ms) BEGIN [shard 873 master]
108042
+  (0.1ms) SAVEPOINT active_record_1 [shard 872 master]
108043
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:19:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:19:11 UTC +00:00]] [shard 872 master]
108044
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 872 master]
108045
+  (0.2ms) ROLLBACK [shard 873 master]
108046
+  (0.2ms) ROLLBACK [shard 872 master]
108047
+ SQL (3.7ms) DELETE FROM "switchman_shards" [shard 871 master]
108048
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 871 master]
108049
+  (4.6ms) DROP SCHEMA switchman_test_shard_872 CASCADE [shard 872 deploy]
108050
+  (0.1ms) BEGIN
108051
+ SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 872]]
108052
+  (0.1ms) COMMIT
108053
+  (5.2ms) DROP SCHEMA switchman_test_shard_873 CASCADE [shard 873 deploy]
108054
+  (0.3ms) BEGIN
108055
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 873]]
108056
+  (0.1ms) COMMIT
108057
+ Connecting to database specified by database.yml
108058
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
108059
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108060
+ SQL (0.5ms) DELETE FROM "switchman_shards"
108061
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108062
+  (0.1ms) BEGIN
108063
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108064
+ 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]]
108065
+  (0.4ms) COMMIT
108066
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108067
+ 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
108068
+  (0.1ms) BEGIN
108069
+ 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"]]
108070
+  (0.3ms) CREATE SCHEMA switchman_test_shard_875 [shard 875 deploy]
108071
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 875 deploy]
108072
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 875 deploy]
108073
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 875 deploy]
108074
+ Migrating to CreateUsers (20130403132607)
108075
+  (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 875 deploy]
108076
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 875 deploy]
108077
+ Migrating to CreateAppendages (20130411202442)
108078
+  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 875 deploy]
108079
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 875 deploy]
108080
+ Migrating to CreateMirrorUsers (20130411202551)
108081
+  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 875 deploy]
108082
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 875 deploy]
108083
+ Migrating to CreateDigits (20131022202028)
108084
+  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 875 deploy]
108085
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 875 deploy]
108086
+ Migrating to CreateFeatures (20131206172923)
108087
+  (2.0ms) 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 875 deploy]
108088
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 875 deploy]
108089
+ Migrating to AddParentIdToUsers (20140123154135)
108090
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 875 deploy]
108091
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 875 deploy]
108092
+ Migrating to CreateRoots (20140219183820)
108093
+  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 875 deploy]
108094
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 875 deploy]
108095
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_875' WHERE "switchman_shards"."id" = 875 [shard 874 master]
108096
+  (0.7ms) COMMIT [shard 874 master]
108097
+ 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 874 master]
108098
+  (0.1ms) BEGIN [shard 874 master]
108099
+ 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 874 master]
108100
+  (0.3ms) COMMIT [shard 874 master]
108101
+  (0.6ms) CREATE SCHEMA switchman_test_shard_876 [shard 876 deploy]
108102
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 876 deploy]
108103
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 876 deploy]
108104
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 876 deploy]
108105
+ Migrating to CreateUsers (20130403132607)
108106
+  (0.1ms) BEGIN [shard 876 deploy]
108107
+  (2.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 876 deploy]
108108
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 876 deploy]
108109
+  (0.3ms) COMMIT [shard 876 deploy]
108110
+ Migrating to CreateAppendages (20130411202442)
108111
+  (0.1ms) BEGIN [shard 876 deploy]
108112
+  (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 876 deploy]
108113
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 876 deploy]
108114
+  (0.3ms) COMMIT [shard 876 deploy]
108115
+ Migrating to CreateMirrorUsers (20130411202551)
108116
+  (0.1ms) BEGIN [shard 876 deploy]
108117
+  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 876 deploy]
108118
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 876 deploy]
108119
+  (0.4ms) COMMIT [shard 876 deploy]
108120
+ Migrating to CreateDigits (20131022202028)
108121
+  (0.1ms) BEGIN [shard 876 deploy]
108122
+  (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 876 deploy]
108123
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 876 deploy]
108124
+  (0.3ms) COMMIT [shard 876 deploy]
108125
+ Migrating to CreateFeatures (20131206172923)
108126
+  (0.1ms) BEGIN [shard 876 deploy]
108127
+  (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 876 deploy]
108128
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 876 deploy]
108129
+  (0.3ms) COMMIT [shard 876 deploy]
108130
+ Migrating to AddParentIdToUsers (20140123154135)
108131
+  (0.1ms) BEGIN [shard 876 deploy]
108132
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 876 deploy]
108133
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 876 deploy]
108134
+  (0.2ms) COMMIT [shard 876 deploy]
108135
+ Migrating to CreateRoots (20140219183820)
108136
+  (0.1ms) BEGIN [shard 876 deploy]
108137
+  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 876 deploy]
108138
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 876 deploy]
108139
+  (0.3ms) COMMIT [shard 876 deploy]
108140
+  (0.1ms) BEGIN [shard 874 master]
108141
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_876' WHERE "switchman_shards"."id" = 876 [shard 874 master]
108142
+  (0.3ms) COMMIT [shard 874 master]
108143
+ SQL (0.4ms) DELETE FROM "switchman_shards" [shard 874 master]
108144
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 874 master]
108145
+  (0.1ms) BEGIN [shard 874 master]
108146
+ Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 874 master]
108147
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 874], ["name", nil]] [shard 874 master]
108148
+  (0.3ms) COMMIT [shard 874 master]
108149
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 874 master]
108150
+  (0.1ms) BEGIN [shard 874 master]
108151
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 875], ["name", "switchman_test_shard_875"]] [shard 874 master]
108152
+  (0.3ms) COMMIT [shard 874 master]
108153
+  (0.1ms) BEGIN [shard 874 master]
108154
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 876], ["name", "switchman_test_shard_876"]] [shard 874 master]
108155
+  (0.3ms) COMMIT [shard 874 master]
108156
+  (0.0ms) BEGIN [shard 874 master]
108157
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 874 master]
108158
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 875]] [shard 874 master]
108159
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 876]] [shard 874 master]
108160
+  (0.1ms) BEGIN [shard 876 master]
108161
+  (0.1ms) SAVEPOINT active_record_1 [shard 875 master]
108162
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:20:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:20:36 UTC +00:00]] [shard 875 master]
108163
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 875 master]
108164
+  (0.2ms) ROLLBACK [shard 876 master]
108165
+  (0.2ms) ROLLBACK [shard 875 master]
108166
+ SQL (3.6ms) DELETE FROM "switchman_shards" [shard 874 master]
108167
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 874 master]
108168
+  (4.7ms) DROP SCHEMA switchman_test_shard_875 CASCADE [shard 875 deploy]
108169
+  (0.1ms) BEGIN
108170
+ SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 875]]
108171
+  (0.1ms) COMMIT
108172
+  (5.3ms) DROP SCHEMA switchman_test_shard_876 CASCADE [shard 876 deploy]
108173
+  (0.2ms) BEGIN
108174
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 876]]
108175
+  (0.1ms) COMMIT
108176
+ Connecting to database specified by database.yml
108177
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
108178
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108179
+ SQL (0.5ms) DELETE FROM "switchman_shards"
108180
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108181
+  (0.1ms) BEGIN
108182
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108183
+ 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]]
108184
+  (0.4ms) COMMIT
108185
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108186
+ 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
108187
+  (0.1ms) BEGIN
108188
+ 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"]]
108189
+  (0.3ms) CREATE SCHEMA switchman_test_shard_878 [shard 878 deploy]
108190
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 878 deploy]
108191
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 878 deploy]
108192
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 878 deploy]
108193
+ Migrating to CreateUsers (20130403132607)
108194
+  (2.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 878 deploy]
108195
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 878 deploy]
108196
+ Migrating to CreateAppendages (20130411202442)
108197
+  (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 878 deploy]
108198
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 878 deploy]
108199
+ Migrating to CreateMirrorUsers (20130411202551)
108200
+  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 878 deploy]
108201
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 878 deploy]
108202
+ Migrating to CreateDigits (20131022202028)
108203
+  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 878 deploy]
108204
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 878 deploy]
108205
+ Migrating to CreateFeatures (20131206172923)
108206
+  (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 878 deploy]
108207
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 878 deploy]
108208
+ Migrating to AddParentIdToUsers (20140123154135)
108209
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 878 deploy]
108210
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 878 deploy]
108211
+ Migrating to CreateRoots (20140219183820)
108212
+  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 878 deploy]
108213
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 878 deploy]
108214
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_878' WHERE "switchman_shards"."id" = 878 [shard 877 master]
108215
+  (0.7ms) COMMIT [shard 877 master]
108216
+ 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 877 master]
108217
+  (0.1ms) BEGIN [shard 877 master]
108218
+ 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 877 master]
108219
+  (0.2ms) COMMIT [shard 877 master]
108220
+  (0.7ms) CREATE SCHEMA switchman_test_shard_879 [shard 879 deploy]
108221
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 879 deploy]
108222
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 879 deploy]
108223
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 879 deploy]
108224
+ Migrating to CreateUsers (20130403132607)
108225
+  (0.1ms) BEGIN [shard 879 deploy]
108226
+  (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 879 deploy]
108227
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 879 deploy]
108228
+  (0.3ms) COMMIT [shard 879 deploy]
108229
+ Migrating to CreateAppendages (20130411202442)
108230
+  (0.1ms) BEGIN [shard 879 deploy]
108231
+  (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 879 deploy]
108232
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 879 deploy]
108233
+  (0.3ms) COMMIT [shard 879 deploy]
108234
+ Migrating to CreateMirrorUsers (20130411202551)
108235
+  (0.1ms) BEGIN [shard 879 deploy]
108236
+  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 879 deploy]
108237
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 879 deploy]
108238
+  (0.3ms) COMMIT [shard 879 deploy]
108239
+ Migrating to CreateDigits (20131022202028)
108240
+  (0.1ms) BEGIN [shard 879 deploy]
108241
+  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 879 deploy]
108242
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 879 deploy]
108243
+  (0.2ms) COMMIT [shard 879 deploy]
108244
+ Migrating to CreateFeatures (20131206172923)
108245
+  (0.1ms) BEGIN [shard 879 deploy]
108246
+  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 879 deploy]
108247
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 879 deploy]
108248
+  (0.3ms) COMMIT [shard 879 deploy]
108249
+ Migrating to AddParentIdToUsers (20140123154135)
108250
+  (0.1ms) BEGIN [shard 879 deploy]
108251
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 879 deploy]
108252
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 879 deploy]
108253
+  (0.2ms) COMMIT [shard 879 deploy]
108254
+ Migrating to CreateRoots (20140219183820)
108255
+  (0.1ms) BEGIN [shard 879 deploy]
108256
+  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 879 deploy]
108257
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 879 deploy]
108258
+  (0.3ms) COMMIT [shard 879 deploy]
108259
+  (0.1ms) BEGIN [shard 877 master]
108260
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_879' WHERE "switchman_shards"."id" = 879 [shard 877 master]
108261
+  (0.2ms) COMMIT [shard 877 master]
108262
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 877 master]
108263
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 877 master]
108264
+  (0.1ms) BEGIN [shard 877 master]
108265
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 877 master]
108266
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 877], ["name", nil]] [shard 877 master]
108267
+  (0.3ms) COMMIT [shard 877 master]
108268
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 877 master]
108269
+  (0.0ms) BEGIN [shard 877 master]
108270
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 878], ["name", "switchman_test_shard_878"]] [shard 877 master]
108271
+  (0.3ms) COMMIT [shard 877 master]
108272
+  (0.1ms) BEGIN [shard 877 master]
108273
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 879], ["name", "switchman_test_shard_879"]] [shard 877 master]
108274
+  (0.3ms) COMMIT [shard 877 master]
108275
+  (0.1ms) BEGIN [shard 877 master]
108276
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 877 master]
108277
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 878]] [shard 877 master]
108278
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 879]] [shard 877 master]
108279
+  (0.1ms) BEGIN [shard 879 master]
108280
+  (0.1ms) SAVEPOINT active_record_1 [shard 878 master]
108281
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:20:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:20:57 UTC +00:00]] [shard 878 master]
108282
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 878 master]
108283
+  (0.2ms) ROLLBACK [shard 879 master]
108284
+  (0.2ms) ROLLBACK [shard 878 master]
108285
+ SQL (4.0ms) DELETE FROM "switchman_shards" [shard 877 master]
108286
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 877 master]
108287
+  (4.6ms) DROP SCHEMA switchman_test_shard_878 CASCADE [shard 878 deploy]
108288
+  (0.1ms) BEGIN
108289
+ SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 878]]
108290
+  (0.1ms) COMMIT
108291
+  (5.0ms) DROP SCHEMA switchman_test_shard_879 CASCADE [shard 879 deploy]
108292
+  (0.2ms) BEGIN
108293
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 879]]
108294
+  (0.1ms) COMMIT
108295
+ Connecting to database specified by database.yml
108296
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
108297
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108298
+ SQL (0.6ms) DELETE FROM "switchman_shards"
108299
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108300
+  (0.1ms) BEGIN
108301
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108302
+ SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]
108303
+  (6.4ms) COMMIT
108304
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108305
+ 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
108306
+  (0.1ms) BEGIN
108307
+ 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"]]
108308
+  (0.3ms) CREATE SCHEMA switchman_test_shard_881 [shard 881 deploy]
108309
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 881 deploy]
108310
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 881 deploy]
108311
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 881 deploy]
108312
+ Migrating to CreateUsers (20130403132607)
108313
+  (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 881 deploy]
108314
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 881 deploy]
108315
+ Migrating to CreateAppendages (20130411202442)
108316
+  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 881 deploy]
108317
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 881 deploy]
108318
+ Migrating to CreateMirrorUsers (20130411202551)
108319
+  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 881 deploy]
108320
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 881 deploy]
108321
+ Migrating to CreateDigits (20131022202028)
108322
+  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 881 deploy]
108323
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 881 deploy]
108324
+ Migrating to CreateFeatures (20131206172923)
108325
+  (2.0ms) 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 881 deploy]
108326
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 881 deploy]
108327
+ Migrating to AddParentIdToUsers (20140123154135)
108328
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 881 deploy]
108329
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 881 deploy]
108330
+ Migrating to CreateRoots (20140219183820)
108331
+  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 881 deploy]
108332
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 881 deploy]
108333
+  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_881' WHERE "switchman_shards"."id" = 881 [shard 880 master]
108334
+  (0.6ms) COMMIT [shard 880 master]
108335
+ 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 880 master]
108336
+  (0.1ms) BEGIN [shard 880 master]
108337
+ 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 880 master]
108338
+  (0.2ms) COMMIT [shard 880 master]
108339
+  (0.5ms) CREATE SCHEMA switchman_test_shard_882 [shard 882 deploy]
108340
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 882 deploy]
108341
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 882 deploy]
108342
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 882 deploy]
108343
+ Migrating to CreateUsers (20130403132607)
108344
+  (0.1ms) BEGIN [shard 882 deploy]
108345
+  (2.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 882 deploy]
108346
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 882 deploy]
108347
+  (0.3ms) COMMIT [shard 882 deploy]
108348
+ Migrating to CreateAppendages (20130411202442)
108349
+  (0.1ms) BEGIN [shard 882 deploy]
108350
+  (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 882 deploy]
108351
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 882 deploy]
108352
+  (0.3ms) COMMIT [shard 882 deploy]
108353
+ Migrating to CreateMirrorUsers (20130411202551)
108354
+  (0.1ms) BEGIN [shard 882 deploy]
108355
+  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 882 deploy]
108356
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 882 deploy]
108357
+  (0.3ms) COMMIT [shard 882 deploy]
108358
+ Migrating to CreateDigits (20131022202028)
108359
+  (0.1ms) BEGIN [shard 882 deploy]
108360
+  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 882 deploy]
108361
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 882 deploy]
108362
+  (0.3ms) COMMIT [shard 882 deploy]
108363
+ Migrating to CreateFeatures (20131206172923)
108364
+  (0.1ms) BEGIN [shard 882 deploy]
108365
+  (2.0ms) 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 882 deploy]
108366
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 882 deploy]
108367
+  (0.3ms) COMMIT [shard 882 deploy]
108368
+ Migrating to AddParentIdToUsers (20140123154135)
108369
+  (0.1ms) BEGIN [shard 882 deploy]
108370
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 882 deploy]
108371
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 882 deploy]
108372
+  (0.2ms) COMMIT [shard 882 deploy]
108373
+ Migrating to CreateRoots (20140219183820)
108374
+  (0.1ms) BEGIN [shard 882 deploy]
108375
+  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 882 deploy]
108376
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 882 deploy]
108377
+  (0.3ms) COMMIT [shard 882 deploy]
108378
+  (0.1ms) BEGIN [shard 880 master]
108379
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_882' WHERE "switchman_shards"."id" = 882 [shard 880 master]
108380
+  (0.2ms) COMMIT [shard 880 master]
108381
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 880 master]
108382
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 880 master]
108383
+  (0.1ms) BEGIN [shard 880 master]
108384
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 880 master]
108385
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 880], ["name", nil]] [shard 880 master]
108386
+  (0.4ms) COMMIT [shard 880 master]
108387
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 880 master]
108388
+  (0.1ms) BEGIN [shard 880 master]
108389
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 881], ["name", "switchman_test_shard_881"]] [shard 880 master]
108390
+  (0.3ms) COMMIT [shard 880 master]
108391
+  (0.1ms) BEGIN [shard 880 master]
108392
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 882], ["name", "switchman_test_shard_882"]] [shard 880 master]
108393
+  (0.3ms) COMMIT [shard 880 master]
108394
+  (0.1ms) BEGIN [shard 880 master]
108395
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 880 master]
108396
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 881]] [shard 880 master]
108397
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 882]] [shard 880 master]
108398
+  (0.1ms) BEGIN [shard 882 master]
108399
+  (0.1ms) SAVEPOINT active_record_1 [shard 881 master]
108400
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:21:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:21:21 UTC +00:00]] [shard 881 master]
108401
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 881 master]
108402
+  (0.3ms) ROLLBACK [shard 882 master]
108403
+  (0.3ms) ROLLBACK [shard 881 master]
108404
+ SQL (0.6ms) DELETE FROM "switchman_shards" [shard 880 master]
108405
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 880 master]
108406
+  (6.0ms) DROP SCHEMA switchman_test_shard_881 CASCADE [shard 881 deploy]
108407
+  (0.1ms) BEGIN
108408
+ SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 881]]
108409
+  (0.1ms) COMMIT
108410
+  (5.0ms) DROP SCHEMA switchman_test_shard_882 CASCADE [shard 882 deploy]
108411
+  (0.2ms) BEGIN
108412
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 882]]
108413
+  (0.1ms) COMMIT
108414
+ Connecting to database specified by database.yml
108415
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
108416
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108417
+ SQL (0.5ms) DELETE FROM "switchman_shards"
108418
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108419
+  (0.1ms) BEGIN
108420
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108421
+ SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]
108422
+  (0.3ms) COMMIT
108423
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108424
+ 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
108425
+  (0.1ms) BEGIN
108426
+ 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"]]
108427
+  (0.2ms) CREATE SCHEMA switchman_test_shard_884 [shard 884 deploy]
108428
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 884 deploy]
108429
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 884 deploy]
108430
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 884 deploy]
108431
+ Migrating to CreateUsers (20130403132607)
108432
+  (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 884 deploy]
108433
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 884 deploy]
108434
+ Migrating to CreateAppendages (20130411202442)
108435
+  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 884 deploy]
108436
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 884 deploy]
108437
+ Migrating to CreateMirrorUsers (20130411202551)
108438
+  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 884 deploy]
108439
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 884 deploy]
108440
+ Migrating to CreateDigits (20131022202028)
108441
+  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 884 deploy]
108442
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 884 deploy]
108443
+ Migrating to CreateFeatures (20131206172923)
108444
+  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 884 deploy]
108445
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 884 deploy]
108446
+ Migrating to AddParentIdToUsers (20140123154135)
108447
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 884 deploy]
108448
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 884 deploy]
108449
+ Migrating to CreateRoots (20140219183820)
108450
+  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 884 deploy]
108451
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 884 deploy]
108452
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_884' WHERE "switchman_shards"."id" = 884 [shard 883 master]
108453
+  (0.8ms) COMMIT [shard 883 master]
108454
+ 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 883 master]
108455
+  (0.1ms) BEGIN [shard 883 master]
108456
+ 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 883 master]
108457
+  (0.3ms) COMMIT [shard 883 master]
108458
+  (0.6ms) CREATE SCHEMA switchman_test_shard_885 [shard 885 deploy]
108459
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 885 deploy]
108460
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 885 deploy]
108461
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 885 deploy]
108462
+ Migrating to CreateUsers (20130403132607)
108463
+  (0.1ms) BEGIN [shard 885 deploy]
108464
+  (1.9ms) 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 885 deploy]
108465
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 885 deploy]
108466
+  (0.3ms) COMMIT [shard 885 deploy]
108467
+ Migrating to CreateAppendages (20130411202442)
108468
+  (0.1ms) BEGIN [shard 885 deploy]
108469
+  (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 885 deploy]
108470
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 885 deploy]
108471
+  (0.4ms) COMMIT [shard 885 deploy]
108472
+ Migrating to CreateMirrorUsers (20130411202551)
108473
+  (0.1ms) BEGIN [shard 885 deploy]
108474
+  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 885 deploy]
108475
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 885 deploy]
108476
+  (0.3ms) COMMIT [shard 885 deploy]
108477
+ Migrating to CreateDigits (20131022202028)
108478
+  (0.1ms) BEGIN [shard 885 deploy]
108479
+  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 885 deploy]
108480
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 885 deploy]
108481
+  (0.3ms) COMMIT [shard 885 deploy]
108482
+ Migrating to CreateFeatures (20131206172923)
108483
+  (0.1ms) BEGIN [shard 885 deploy]
108484
+  (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 885 deploy]
108485
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 885 deploy]
108486
+  (0.3ms) COMMIT [shard 885 deploy]
108487
+ Migrating to AddParentIdToUsers (20140123154135)
108488
+  (0.1ms) BEGIN [shard 885 deploy]
108489
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 885 deploy]
108490
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 885 deploy]
108491
+  (0.2ms) COMMIT [shard 885 deploy]
108492
+ Migrating to CreateRoots (20140219183820)
108493
+  (0.1ms) BEGIN [shard 885 deploy]
108494
+  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 885 deploy]
108495
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 885 deploy]
108496
+  (0.3ms) COMMIT [shard 885 deploy]
108497
+  (0.1ms) BEGIN [shard 883 master]
108498
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_885' WHERE "switchman_shards"."id" = 885 [shard 883 master]
108499
+  (0.2ms) COMMIT [shard 883 master]
108500
+ SQL (0.4ms) DELETE FROM "switchman_shards" [shard 883 master]
108501
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 883 master]
108502
+  (0.1ms) BEGIN [shard 883 master]
108503
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 883 master]
108504
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 883], ["name", nil]] [shard 883 master]
108505
+  (0.3ms) COMMIT [shard 883 master]
108506
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 883 master]
108507
+  (0.0ms) BEGIN [shard 883 master]
108508
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 884], ["name", "switchman_test_shard_884"]] [shard 883 master]
108509
+  (0.3ms) COMMIT [shard 883 master]
108510
+  (0.0ms) BEGIN [shard 883 master]
108511
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 885], ["name", "switchman_test_shard_885"]] [shard 883 master]
108512
+  (0.3ms) COMMIT [shard 883 master]
108513
+  (0.1ms) BEGIN [shard 883 master]
108514
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 883 master]
108515
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 884]] [shard 883 master]
108516
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 885]] [shard 883 master]
108517
+  (0.1ms) BEGIN [shard 885 master]
108518
+  (0.1ms) SAVEPOINT active_record_1 [shard 884 master]
108519
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:21:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:21:38 UTC +00:00]] [shard 884 master]
108520
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 884 master]
108521
+  (0.1ms) ROLLBACK [shard 885 master]
108522
+  (0.1ms) ROLLBACK [shard 884 master]
108523
+ SQL (0.6ms) DELETE FROM "switchman_shards" [shard 883 master]
108524
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 883 master]
108525
+  (4.8ms) DROP SCHEMA switchman_test_shard_884 CASCADE [shard 884 deploy]
108526
+  (0.1ms) BEGIN
108527
+ SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 884]]
108528
+  (0.1ms) COMMIT
108529
+  (5.3ms) DROP SCHEMA switchman_test_shard_885 CASCADE [shard 885 deploy]
108530
+  (0.2ms) BEGIN
108531
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 885]]
108532
+  (0.1ms) COMMIT
108533
+ Connecting to database specified by database.yml
108534
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
108535
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108536
+ SQL (0.5ms) DELETE FROM "switchman_shards"
108537
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108538
+  (0.1ms) BEGIN
108539
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108540
+ 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]]
108541
+  (0.4ms) COMMIT
108542
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108543
+ 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
108544
+  (0.1ms) BEGIN
108545
+ 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"]]
108546
+  (0.3ms) CREATE SCHEMA switchman_test_shard_887 [shard 887 deploy]
108547
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 887 deploy]
108548
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 887 deploy]
108549
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 887 deploy]
108550
+ Migrating to CreateUsers (20130403132607)
108551
+  (1.9ms) 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 887 deploy]
108552
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 887 deploy]
108553
+ Migrating to CreateAppendages (20130411202442)
108554
+  (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 887 deploy]
108555
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 887 deploy]
108556
+ Migrating to CreateMirrorUsers (20130411202551)
108557
+  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 887 deploy]
108558
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 887 deploy]
108559
+ Migrating to CreateDigits (20131022202028)
108560
+  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 887 deploy]
108561
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 887 deploy]
108562
+ Migrating to CreateFeatures (20131206172923)
108563
+  (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 887 deploy]
108564
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 887 deploy]
108565
+ Migrating to AddParentIdToUsers (20140123154135)
108566
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 887 deploy]
108567
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 887 deploy]
108568
+ Migrating to CreateRoots (20140219183820)
108569
+  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 887 deploy]
108570
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 887 deploy]
108571
+  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_887' WHERE "switchman_shards"."id" = 887 [shard 886 master]
108572
+  (0.7ms) COMMIT [shard 886 master]
108573
+ 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 886 master]
108574
+  (0.1ms) BEGIN [shard 886 master]
108575
+ 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 886 master]
108576
+  (0.3ms) COMMIT [shard 886 master]
108577
+  (0.6ms) CREATE SCHEMA switchman_test_shard_888 [shard 888 deploy]
108578
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 888 deploy]
108579
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 888 deploy]
108580
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 888 deploy]
108581
+ Migrating to CreateUsers (20130403132607)
108582
+  (0.1ms) BEGIN [shard 888 deploy]
108583
+  (2.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 888 deploy]
108584
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 888 deploy]
108585
+  (0.3ms) COMMIT [shard 888 deploy]
108586
+ Migrating to CreateAppendages (20130411202442)
108587
+  (0.1ms) BEGIN [shard 888 deploy]
108588
+  (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 888 deploy]
108589
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 888 deploy]
108590
+  (0.3ms) COMMIT [shard 888 deploy]
108591
+ Migrating to CreateMirrorUsers (20130411202551)
108592
+  (0.1ms) BEGIN [shard 888 deploy]
108593
+  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 888 deploy]
108594
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 888 deploy]
108595
+  (0.3ms) COMMIT [shard 888 deploy]
108596
+ Migrating to CreateDigits (20131022202028)
108597
+  (0.1ms) BEGIN [shard 888 deploy]
108598
+  (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 888 deploy]
108599
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 888 deploy]
108600
+  (0.3ms) COMMIT [shard 888 deploy]
108601
+ Migrating to CreateFeatures (20131206172923)
108602
+  (0.2ms) BEGIN [shard 888 deploy]
108603
+  (2.0ms) 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 888 deploy]
108604
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 888 deploy]
108605
+  (0.3ms) COMMIT [shard 888 deploy]
108606
+ Migrating to AddParentIdToUsers (20140123154135)
108607
+  (0.1ms) BEGIN [shard 888 deploy]
108608
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 888 deploy]
108609
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 888 deploy]
108610
+  (0.3ms) COMMIT [shard 888 deploy]
108611
+ Migrating to CreateRoots (20140219183820)
108612
+  (0.1ms) BEGIN [shard 888 deploy]
108613
+  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 888 deploy]
108614
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 888 deploy]
108615
+  (0.4ms) COMMIT [shard 888 deploy]
108616
+  (0.1ms) BEGIN [shard 886 master]
108617
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_888' WHERE "switchman_shards"."id" = 888 [shard 886 master]
108618
+  (0.4ms) COMMIT [shard 886 master]
108619
+ SQL (0.4ms) DELETE FROM "switchman_shards" [shard 886 master]
108620
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 886 master]
108621
+  (0.1ms) BEGIN [shard 886 master]
108622
+ Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 886 master]
108623
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 886], ["name", nil]] [shard 886 master]
108624
+  (0.3ms) COMMIT [shard 886 master]
108625
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 886 master]
108626
+  (0.1ms) BEGIN [shard 886 master]
108627
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 887], ["name", "switchman_test_shard_887"]] [shard 886 master]
108628
+  (0.2ms) COMMIT [shard 886 master]
108629
+  (0.1ms) BEGIN [shard 886 master]
108630
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 888], ["name", "switchman_test_shard_888"]] [shard 886 master]
108631
+  (0.2ms) COMMIT [shard 886 master]
108632
+  (0.0ms) BEGIN [shard 886 master]
108633
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 886 master]
108634
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 887]] [shard 886 master]
108635
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 888]] [shard 886 master]
108636
+  (0.1ms) BEGIN [shard 888 master]
108637
+  (0.1ms) SAVEPOINT active_record_1 [shard 887 master]
108638
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:22:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:22:08 UTC +00:00]] [shard 887 master]
108639
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 887 master]
108640
+  (0.3ms) ROLLBACK [shard 888 master]
108641
+  (0.3ms) ROLLBACK [shard 887 master]
108642
+ SQL (2.8ms) DELETE FROM "switchman_shards" [shard 886 master]
108643
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 886 master]
108644
+  (5.0ms) DROP SCHEMA switchman_test_shard_887 CASCADE [shard 887 deploy]
108645
+  (0.1ms) BEGIN
108646
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 887]]
108647
+  (0.1ms) COMMIT
108648
+  (4.6ms) DROP SCHEMA switchman_test_shard_888 CASCADE [shard 888 deploy]
108649
+  (0.2ms) BEGIN
108650
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 888]]
108651
+  (0.1ms) COMMIT
108652
+ Connecting to database specified by database.yml
108653
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
108654
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108655
+ SQL (0.7ms) DELETE FROM "switchman_shards"
108656
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108657
+  (0.1ms) BEGIN
108658
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108659
+ SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]
108660
+  (0.3ms) COMMIT
108661
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108662
+ 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
108663
+  (0.1ms) BEGIN
108664
+ 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"]]
108665
+  (0.2ms) CREATE SCHEMA switchman_test_shard_890 [shard 890 deploy]
108666
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 890 deploy]
108667
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 890 deploy]
108668
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 890 deploy]
108669
+ Migrating to CreateUsers (20130403132607)
108670
+  (1.9ms) 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 890 deploy]
108671
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 890 deploy]
108672
+ Migrating to CreateAppendages (20130411202442)
108673
+  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 890 deploy]
108674
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 890 deploy]
108675
+ Migrating to CreateMirrorUsers (20130411202551)
108676
+  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 890 deploy]
108677
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 890 deploy]
108678
+ Migrating to CreateDigits (20131022202028)
108679
+  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 890 deploy]
108680
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 890 deploy]
108681
+ Migrating to CreateFeatures (20131206172923)
108682
+  (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 890 deploy]
108683
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 890 deploy]
108684
+ Migrating to AddParentIdToUsers (20140123154135)
108685
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 890 deploy]
108686
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 890 deploy]
108687
+ Migrating to CreateRoots (20140219183820)
108688
+  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 890 deploy]
108689
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 890 deploy]
108690
+  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_890' WHERE "switchman_shards"."id" = 890 [shard 889 master]
108691
+  (0.7ms) COMMIT [shard 889 master]
108692
+ 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 889 master]
108693
+  (0.1ms) BEGIN [shard 889 master]
108694
+ 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 889 master]
108695
+  (0.2ms) COMMIT [shard 889 master]
108696
+  (0.6ms) CREATE SCHEMA switchman_test_shard_891 [shard 891 deploy]
108697
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 891 deploy]
108698
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 891 deploy]
108699
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 891 deploy]
108700
+ Migrating to CreateUsers (20130403132607)
108701
+  (0.1ms) BEGIN [shard 891 deploy]
108702
+  (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 891 deploy]
108703
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 891 deploy]
108704
+  (0.3ms) COMMIT [shard 891 deploy]
108705
+ Migrating to CreateAppendages (20130411202442)
108706
+  (0.1ms) BEGIN [shard 891 deploy]
108707
+  (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 891 deploy]
108708
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 891 deploy]
108709
+  (0.3ms) COMMIT [shard 891 deploy]
108710
+ Migrating to CreateMirrorUsers (20130411202551)
108711
+  (0.1ms) BEGIN [shard 891 deploy]
108712
+  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 891 deploy]
108713
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 891 deploy]
108714
+  (0.3ms) COMMIT [shard 891 deploy]
108715
+ Migrating to CreateDigits (20131022202028)
108716
+  (0.1ms) BEGIN [shard 891 deploy]
108717
+  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 891 deploy]
108718
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 891 deploy]
108719
+  (0.3ms) COMMIT [shard 891 deploy]
108720
+ Migrating to CreateFeatures (20131206172923)
108721
+  (0.2ms) BEGIN [shard 891 deploy]
108722
+  (2.2ms) 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 891 deploy]
108723
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 891 deploy]
108724
+  (0.3ms) COMMIT [shard 891 deploy]
108725
+ Migrating to AddParentIdToUsers (20140123154135)
108726
+  (0.1ms) BEGIN [shard 891 deploy]
108727
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 891 deploy]
108728
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 891 deploy]
108729
+  (0.3ms) COMMIT [shard 891 deploy]
108730
+ Migrating to CreateRoots (20140219183820)
108731
+  (0.1ms) BEGIN [shard 891 deploy]
108732
+  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 891 deploy]
108733
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 891 deploy]
108734
+  (0.3ms) COMMIT [shard 891 deploy]
108735
+  (0.1ms) BEGIN [shard 889 master]
108736
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_891' WHERE "switchman_shards"."id" = 891 [shard 889 master]
108737
+  (0.3ms) COMMIT [shard 889 master]
108738
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 889 master]
108739
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 889 master]
108740
+  (0.1ms) BEGIN [shard 889 master]
108741
+ Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 889 master]
108742
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 889], ["name", nil]] [shard 889 master]
108743
+  (0.4ms) COMMIT [shard 889 master]
108744
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 889 master]
108745
+  (0.1ms) BEGIN [shard 889 master]
108746
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 890], ["name", "switchman_test_shard_890"]] [shard 889 master]
108747
+  (0.3ms) COMMIT [shard 889 master]
108748
+  (0.0ms) BEGIN [shard 889 master]
108749
+ SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 891], ["name", "switchman_test_shard_891"]] [shard 889 master]
108750
+  (0.3ms) COMMIT [shard 889 master]
108751
+  (0.1ms) BEGIN [shard 889 master]
108752
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 889 master]
108753
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 890]] [shard 889 master]
108754
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 891]] [shard 889 master]
108755
+  (0.1ms) BEGIN [shard 891 master]
108756
+  (0.1ms) SAVEPOINT active_record_1 [shard 890 master]
108757
+ SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:24:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:24:08 UTC +00:00]] [shard 890 master]
108758
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 890 master]
108759
+  (0.1ms) ROLLBACK [shard 891 master]
108760
+  (0.1ms) ROLLBACK [shard 890 master]
108761
+ SQL (0.4ms) DELETE FROM "switchman_shards" [shard 889 master]
108762
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 889 master]
108763
+  (4.6ms) DROP SCHEMA switchman_test_shard_890 CASCADE [shard 890 deploy]
108764
+  (0.0ms) BEGIN
108765
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 890]]
108766
+  (0.1ms) COMMIT
108767
+  (6.2ms) DROP SCHEMA switchman_test_shard_891 CASCADE [shard 891 deploy]
108768
+  (0.3ms) BEGIN
108769
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 891]]
108770
+  (0.1ms) COMMIT
108771
+ Connecting to database specified by database.yml
108772
+  (2.5ms) SELECT * FROM unnest(current_schemas(false))
108773
+ Switchman::Shard Load (1.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108774
+ SQL (7.2ms) DELETE FROM "switchman_shards"
108775
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108776
+  (0.1ms) BEGIN
108777
+ Switchman::Shard Exists (13.7ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108778
+ SQL (16.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]
108779
+  (0.3ms) COMMIT
108780
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
108781
+ Switchman::Shard Load (4.0ms) 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
108782
+  (3.2ms) BEGIN
108783
+ 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"]]
108784
+  (7.9ms) CREATE SCHEMA switchman_test_shard_893 [shard 893 deploy]
108785
+  (8.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 893 deploy]
108786
+  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 893 deploy]
108787
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 893 deploy]
108788
+ Migrating to CreateUsers (20130403132607)
108789
+  (39.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 893 deploy]
108790
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 893 deploy]
108791
+ Migrating to CreateAppendages (20130411202442)
108792
+  (7.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 893 deploy]
108793
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 893 deploy]
108794
+ Migrating to CreateMirrorUsers (20130411202551)
108795
+  (7.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 893 deploy]
108796
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 893 deploy]
108797
+ Migrating to CreateDigits (20131022202028)
108798
+  (7.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 893 deploy]
108799
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 893 deploy]
108800
+ Migrating to CreateFeatures (20131206172923)
108801
+  (8.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 893 deploy]
108802
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 893 deploy]
108803
+ Migrating to AddParentIdToUsers (20140123154135)
108804
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 893 deploy]
108805
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 893 deploy]
108806
+ Migrating to CreateRoots (20140219183820)
108807
+  (6.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 893 deploy]
108808
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 893 deploy]
108809
+  (2.6ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_893' WHERE "switchman_shards"."id" = 893 [shard 892 master]
108810
+  (0.9ms) COMMIT [shard 892 master]
108811
+ 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 892 master]
108812
+  (0.1ms) BEGIN [shard 892 master]
108813
+ 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 892 master]
108814
+  (0.2ms) COMMIT [shard 892 master]
108815
+  (0.5ms) CREATE SCHEMA switchman_test_shard_894 [shard 894 deploy]
108816
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 894 deploy]
108817
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 894 deploy]
108818
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 894 deploy]
108819
+ Migrating to CreateUsers (20130403132607)
108820
+  (0.1ms) BEGIN [shard 894 deploy]
108821
+  (4.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 894 deploy]
108822
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 894 deploy]
108823
+  (12.5ms) COMMIT [shard 894 deploy]
108824
+ Migrating to CreateAppendages (20130411202442)
108825
+  (0.1ms) BEGIN [shard 894 deploy]
108826
+  (10.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 894 deploy]
108827
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 894 deploy]
108828
+  (0.3ms) COMMIT [shard 894 deploy]
108829
+ Migrating to CreateMirrorUsers (20130411202551)
108830
+  (0.1ms) BEGIN [shard 894 deploy]
108831
+  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 894 deploy]
108832
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 894 deploy]
108833
+  (0.3ms) COMMIT [shard 894 deploy]
108834
+ Migrating to CreateDigits (20131022202028)
108835
+  (0.1ms) BEGIN [shard 894 deploy]
108836
+  (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 894 deploy]
108837
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 894 deploy]
108838
+  (0.4ms) COMMIT [shard 894 deploy]
108839
+ Migrating to CreateFeatures (20131206172923)
108840
+  (0.2ms) BEGIN [shard 894 deploy]
108841
+  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 894 deploy]
108842
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 894 deploy]
108843
+  (0.3ms) COMMIT [shard 894 deploy]
108844
+ Migrating to AddParentIdToUsers (20140123154135)
108845
+  (0.1ms) BEGIN [shard 894 deploy]
108846
+  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 894 deploy]
108847
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 894 deploy]
108848
+  (0.2ms) COMMIT [shard 894 deploy]
108849
+ Migrating to CreateRoots (20140219183820)
108850
+  (0.1ms) BEGIN [shard 894 deploy]
108851
+  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 894 deploy]
108852
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 894 deploy]
108853
+  (0.3ms) COMMIT [shard 894 deploy]
108854
+  (0.1ms) BEGIN [shard 892 master]
108855
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_894' WHERE "switchman_shards"."id" = 894 [shard 892 master]
108856
+  (0.2ms) COMMIT [shard 892 master]
108857
+ SQL (0.2ms) DELETE FROM "switchman_shards" [shard 892 master]
108858
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]
108859
+  (0.1ms) BEGIN [shard 892 master]
108860
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]
108861
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]
108862
+  (0.2ms) COMMIT [shard 892 master]
108863
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]
108864
+  (0.1ms) BEGIN [shard 892 master]
108865
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]
108866
+  (0.2ms) COMMIT [shard 892 master]
108867
+  (0.1ms) BEGIN [shard 892 master]
108868
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]
108869
+  (0.2ms) COMMIT [shard 892 master]
108870
+  (0.1ms) BEGIN [shard 892 master]
108871
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]
108872
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master]
108873
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]
108874
+  (0.1ms) BEGIN [shard 894 master]
108875
+  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]
108876
+ SQL (27.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 892 master]
108877
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]
108878
+  (0.0ms) SAVEPOINT active_record_1 [shard 893 master]
108879
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]
108880
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]
108881
+  (0.1ms) ROLLBACK [shard 894 master]
108882
+  (0.1ms) ROLLBACK [shard 893 master]
108883
+  (0.0ms) BEGIN [shard 892 master]
108884
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]
108885
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master]
108886
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]
108887
+  (0.1ms) BEGIN [shard 894 master]
108888
+  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]
108889
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 892 master]
108890
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]
108891
+  (0.0ms) SAVEPOINT active_record_1 [shard 893 master]
108892
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]
108893
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]
108894
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 [shard 893 master]
108895
+  (0.1ms) ROLLBACK [shard 894 master]
108896
+  (0.1ms) ROLLBACK [shard 893 master]
108897
+  (0.1ms) BEGIN [shard 892 master]
108898
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]
108899
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master]
108900
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]
108901
+  (0.1ms) BEGIN [shard 894 master]
108902
+  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]
108903
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 892 master]
108904
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]
108905
+  (0.0ms) SAVEPOINT active_record_1 [shard 893 master]
108906
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]
108907
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]
108908
+  (0.1ms) ROLLBACK [shard 894 master]
108909
+  (0.1ms) ROLLBACK [shard 893 master]
108910
+  (0.0ms) BEGIN [shard 892 master]
108911
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]
108912
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master]
108913
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]
108914
+  (0.1ms) BEGIN [shard 894 master]
108915
+  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]
108916
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 892 master]
108917
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]
108918
+  (0.0ms) SAVEPOINT active_record_1 [shard 893 master]
108919
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]
108920
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]
108921
+ SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 4 [shard 893 master]
108922
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1478]] [shard 892 master]
108923
+  (0.1ms) ROLLBACK [shard 894 master]
108924
+  (0.1ms) ROLLBACK [shard 892 master]
108925
+  (0.1ms) BEGIN [shard 892 master]
108926
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]
108927
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master]
108928
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]
108929
+  (0.1ms) BEGIN [shard 894 master]
108930
+  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]
108931
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 892 master]
108932
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]
108933
+  (0.0ms) SAVEPOINT active_record_1 [shard 893 master]
108934
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]
108935
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]
108936
+  (0.1ms) ROLLBACK [shard 894 master]
108937
+  (0.1ms) ROLLBACK [shard 893 master]
108938
+ SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master]
108939
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]
108940
+