switchman 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjkwNzVmZmU5NDk0ODVjMTk2ZTU0NjBkYTg1ODZiZjcyMTE1NWVhMQ==
4
+ ZTIzZDY0OTQ0NjhlNzI4N2UxMWFlMTViNzc0Y2YwYmUzYmNhNDdmYg==
5
5
  data.tar.gz: !binary |-
6
- Mjg1OGIzMTUwZTJiMTM3YWQ1NTg4ZjQ2ODBkMGRkZThlZDMyNjdkNA==
6
+ MGFlN2UxNjdkYTliYWQ4OWY0YjFkYjUxYmIyYjkwMzkwOTU4YjMyYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2RjMjE2NjFkMmE3ZjEwN2NiMTVhMTZkM2E4ODBjMmI2YzdkZGNjOGNmOTEw
10
- Nzc4MDcxOTdlOWNjYjBmODU3NWExZWU0MzIwODcxZDQ4Mzk5OTU4ZTAwM2Y5
11
- MmQ1MGYxZmY0YmE1MTRjZTIzOTdkMTZlZTVlNTdhY2JlOWJkYjU=
9
+ YWRlMTcwZDNmMGM2MzkxYWUyMzQ4ZGM3NTdmNGEzMjc2M2EwNDdmOTE3YzVj
10
+ YjUwZDY2NWZlZDQzZTk0NWFiZjQwNTI3MzRlOTZjNWRlNGJhOWQ4ZTM3MjBl
11
+ NDhjY2MzNTVlOTI1NmE0YjNhNTk2NmUzMDNmMjQ3ZmM0N2Y2MzY=
12
12
  data.tar.gz: !binary |-
13
- ZDAwNDQ3NTljNWY3OTJiMTMxYTNiMmI1MTNmMjlhNWYxNmI5NDEzYTdkNDI2
14
- NGJlZjVkM2IwNTkwZGNlZDZkZTkxODUwNGE3MTNmMGE5MDAwY2M0NzkxYzEw
15
- MjQ5ZjJiZWZiZmNiYmIxNDYxNzdhYmE2ZDhmOGUxYzMyODNiNDE=
13
+ MWRjNmI0M2U5MTExMDg0YmZhZDJkZTNhMGZjZDZmOWJhOWM2Y2UwNjgwZjkx
14
+ ZDBjZjkxMjZlMDg3MWNkMWNmMjUxYWM3NDlkMzFiOGVmMmM4M2E1ZTJhNjli
15
+ MzUzOGMwMDdjMGJiNjFmMzE3NzQzYmI4NWRkODFhZTJhMzFhOTA=
@@ -4,6 +4,11 @@ module Switchman
4
4
  # *after* that module is included
5
5
  module QueryCache
6
6
  # thread local accessors to replace @query_cache_enabled
7
+ def query_cache
8
+ thread_cache = Thread.current[:query_cache] ||= {}
9
+ thread_cache[self.object_id] ||= Hash.new { |h,sql| h[sql] = {} }
10
+ end
11
+
7
12
  def query_cache_enabled
8
13
  Thread.current[:query_cache_enabled]
9
14
  end
@@ -40,6 +45,10 @@ module Switchman
40
45
  self.query_cache_enabled = old
41
46
  end
42
47
 
48
+ def clear_query_cache
49
+ Thread.current[:query_cache].try(:clear)
50
+ end
51
+
43
52
  def select_all(arel, name = nil, binds = [])
44
53
  if self.query_cache_enabled && !locked?(arel)
45
54
  sql = to_sql(arel, binds)
@@ -61,9 +70,20 @@ module Switchman
61
70
  end
62
71
 
63
72
  private
64
- def cache_sql(sql, *args, &block)
73
+
74
+ def cache_sql(sql, binds)
65
75
  # have to include the shard id in the cache key because of switching dbs on the same connection
66
- super("#{self.shard.id}::#{sql}", *args, &block)
76
+ sql = "#{self.shard.id}::#{sql}"
77
+ result =
78
+ if query_cache[sql].key?(binds)
79
+ ::ActiveSupport::Notifications.instrument("sql.active_record",
80
+ :sql => sql, :binds => binds, :name => "CACHE", :connection_id => object_id)
81
+ query_cache[sql][binds]
82
+ else
83
+ query_cache[sql][binds] = yield
84
+ end
85
+
86
+ result.collect { |row| row.dup }
67
87
  end
68
88
 
69
89
  def self.included(base)
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
@@ -27126,3 +27126,7386 @@ LINE 1: SELECT COUNT(*) FROM "users"
27126
27126
   (5.1ms) DROP SCHEMA switchman_test_shard_4371 CASCADE [shard 4371 deploy]
27127
27127
   (0.2ms) BEGIN
27128
27128
   (0.1ms) COMMIT
27129
+ Connecting to database specified by database.yml
27130
+  (7.6ms) SELECT * FROM unnest(current_schemas(false))
27131
+ Switchman::Shard Load (24.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27132
+ SQL (0.7ms) DELETE FROM "switchman_shards"
27133
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27134
+  (0.1ms) BEGIN
27135
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27136
+ SQL (8.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]
27137
+  (0.2ms) COMMIT
27138
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27139
+ Switchman::Shard Load (2.1ms) 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
27140
+  (0.1ms) BEGIN
27141
+ 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"]]
27142
+  (7.8ms) CREATE SCHEMA switchman_test_shard_4387 [shard 4387 deploy]
27143
+  (15.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4387 deploy]
27144
+  (3.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4387 deploy]
27145
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4387 deploy]
27146
+ Migrating to CreateUsers (20130403132607)
27147
+  (34.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 4387 deploy]
27148
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4387 deploy]
27149
+ Migrating to CreateAppendages (20130411202442)
27150
+  (32.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4387 deploy]
27151
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4387 deploy]
27152
+ Migrating to CreateMirrorUsers (20130411202551)
27153
+  (27.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4387 deploy]
27154
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4387 deploy]
27155
+ Migrating to CreateDigits (20131022202028)
27156
+  (28.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4387 deploy]
27157
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4387 deploy]
27158
+ Migrating to CreateFeatures (20131206172923)
27159
+  (27.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 4387 deploy]
27160
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4387 deploy]
27161
+ Migrating to AddParentIdToUsers (20140123154135)
27162
+  (11.1ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4387 deploy]
27163
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4387 deploy]
27164
+ Migrating to CreateRoots (20140219183820)
27165
+  (30.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4387 deploy]
27166
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4387 deploy]
27167
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4387' WHERE "switchman_shards"."id" = 4387 [shard 4386 master]
27168
+  (1.7ms) COMMIT [shard 4386 master]
27169
+ 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 4386 master]
27170
+  (0.1ms) BEGIN [shard 4386 master]
27171
+ 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 4386 master]
27172
+  (0.2ms) COMMIT [shard 4386 master]
27173
+  (0.6ms) CREATE SCHEMA switchman_test_shard_4388 [shard 4388 deploy]
27174
+  (7.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4388 deploy]
27175
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4388 deploy]
27176
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4388 deploy]
27177
+ Migrating to CreateUsers (20130403132607)
27178
+  (0.1ms) BEGIN [shard 4388 deploy]
27179
+  (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 4388 deploy]
27180
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4388 deploy]
27181
+  (0.3ms) COMMIT [shard 4388 deploy]
27182
+ Migrating to CreateAppendages (20130411202442)
27183
+  (0.1ms) BEGIN [shard 4388 deploy]
27184
+  (3.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4388 deploy]
27185
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4388 deploy]
27186
+  (0.3ms) COMMIT [shard 4388 deploy]
27187
+ Migrating to CreateMirrorUsers (20130411202551)
27188
+  (0.1ms) BEGIN [shard 4388 deploy]
27189
+  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4388 deploy]
27190
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4388 deploy]
27191
+  (0.3ms) COMMIT [shard 4388 deploy]
27192
+ Migrating to CreateDigits (20131022202028)
27193
+  (0.1ms) BEGIN [shard 4388 deploy]
27194
+  (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 4388 deploy]
27195
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4388 deploy]
27196
+  (0.3ms) COMMIT [shard 4388 deploy]
27197
+ Migrating to CreateFeatures (20131206172923)
27198
+  (0.1ms) BEGIN [shard 4388 deploy]
27199
+  (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 4388 deploy]
27200
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4388 deploy]
27201
+  (0.3ms) COMMIT [shard 4388 deploy]
27202
+ Migrating to AddParentIdToUsers (20140123154135)
27203
+  (0.1ms) BEGIN [shard 4388 deploy]
27204
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4388 deploy]
27205
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4388 deploy]
27206
+  (0.2ms) COMMIT [shard 4388 deploy]
27207
+ Migrating to CreateRoots (20140219183820)
27208
+  (0.1ms) BEGIN [shard 4388 deploy]
27209
+  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4388 deploy]
27210
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4388 deploy]
27211
+  (0.3ms) COMMIT [shard 4388 deploy]
27212
+  (0.1ms) BEGIN [shard 4386 master]
27213
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4388' WHERE "switchman_shards"."id" = 4388 [shard 4386 master]
27214
+  (0.2ms) COMMIT [shard 4386 master]
27215
+  (0.1ms) BEGIN [shard 4386 master]
27216
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4386 master]
27217
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4387]] [shard 4386 master]
27218
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4388]] [shard 4386 master]
27219
+  (0.1ms) BEGIN [shard 4388 master]
27220
+  (0.1ms) SAVEPOINT active_record_1 [shard 4387 master]
27221
+ SQL (8.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 04:59:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 04:59:13 UTC +00:00]] [shard 4387 master]
27222
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4387 master]
27223
+  (0.1ms) SAVEPOINT active_record_1 [shard 4388 master]
27224
+ SQL (6.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 04:59:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 04:59:13 UTC +00:00]] [shard 4388 master]
27225
+  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 4388 master]
27226
+  (0.2ms) SAVEPOINT active_record_1 [shard 4387 master]
27227
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 04:59:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1], ["updated_at", Thu, 15 May 2014 04:59:13 UTC +00:00]] [shard 4387 master]
27228
+  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 4387 master]
27229
+  (0.1ms) SAVEPOINT active_record_1 [shard 4387 master]
27230
+ 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", Thu, 15 May 2014 04:59:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2], ["updated_at", Thu, 15 May 2014 04:59:13 UTC +00:00]] [shard 4387 master]
27231
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4387 master]
27232
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [shard 4387 master]
27233
+  (0.2ms) SHOW max_identifier_length [shard 4387 master]
27234
+ User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1 AND "users"."id" = 3 LIMIT 1 [shard 4387 master]
27235
+  (0.1ms) ROLLBACK [shard 4388 master]
27236
+  (0.2ms) ROLLBACK [shard 4387 master]
27237
+  (0.0ms) BEGIN [shard 4386 master]
27238
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4386]] [shard 4386 master]
27239
+  (0.3ms) COMMIT [shard 4386 master]
27240
+  (0.0ms) BEGIN [shard 4386 master]
27241
+ SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4387]] [shard 4386 master]
27242
+  (0.2ms) COMMIT [shard 4386 master]
27243
+  (0.0ms) BEGIN [shard 4386 master]
27244
+ SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4388]] [shard 4386 master]
27245
+  (0.2ms) COMMIT [shard 4386 master]
27246
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4386 master]
27247
+  (8.3ms) DROP SCHEMA switchman_test_shard_4387 CASCADE [shard 4387 deploy]
27248
+  (0.1ms) BEGIN
27249
+  (0.0ms) COMMIT
27250
+  (4.7ms) DROP SCHEMA switchman_test_shard_4388 CASCADE [shard 4388 deploy]
27251
+  (0.2ms) BEGIN
27252
+  (0.1ms) COMMIT
27253
+ Connecting to database specified by database.yml
27254
+  (0.5ms) SELECT * FROM unnest(current_schemas(false))
27255
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27256
+ SQL (0.6ms) DELETE FROM "switchman_shards"
27257
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27258
+  (0.1ms) BEGIN
27259
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27260
+ 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]]
27261
+  (7.0ms) COMMIT
27262
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27263
+ 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
27264
+  (0.1ms) BEGIN
27265
+ 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"]]
27266
+  (0.3ms) CREATE SCHEMA switchman_test_shard_4390 [shard 4390 deploy]
27267
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4390 deploy]
27268
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4390 deploy]
27269
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4390 deploy]
27270
+ Migrating to CreateUsers (20130403132607)
27271
+  (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 4390 deploy]
27272
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4390 deploy]
27273
+ Migrating to CreateAppendages (20130411202442)
27274
+  (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 4390 deploy]
27275
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4390 deploy]
27276
+ Migrating to CreateMirrorUsers (20130411202551)
27277
+  (3.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4390 deploy]
27278
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4390 deploy]
27279
+ Migrating to CreateDigits (20131022202028)
27280
+  (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 4390 deploy]
27281
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4390 deploy]
27282
+ Migrating to CreateFeatures (20131206172923)
27283
+  (2.3ms) 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 4390 deploy]
27284
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4390 deploy]
27285
+ Migrating to AddParentIdToUsers (20140123154135)
27286
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4390 deploy]
27287
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4390 deploy]
27288
+ Migrating to CreateRoots (20140219183820)
27289
+  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4390 deploy]
27290
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4390 deploy]
27291
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4390' WHERE "switchman_shards"."id" = 4390 [shard 4389 master]
27292
+  (0.7ms) COMMIT [shard 4389 master]
27293
+ 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 4389 master]
27294
+  (0.1ms) BEGIN [shard 4389 master]
27295
+ 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 4389 master]
27296
+  (0.3ms) COMMIT [shard 4389 master]
27297
+  (0.6ms) CREATE SCHEMA switchman_test_shard_4391 [shard 4391 deploy]
27298
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4391 deploy]
27299
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4391 deploy]
27300
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4391 deploy]
27301
+ Migrating to CreateUsers (20130403132607)
27302
+  (0.1ms) BEGIN [shard 4391 deploy]
27303
+  (2.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 4391 deploy]
27304
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4391 deploy]
27305
+  (0.3ms) COMMIT [shard 4391 deploy]
27306
+ Migrating to CreateAppendages (20130411202442)
27307
+  (0.1ms) BEGIN [shard 4391 deploy]
27308
+  (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 4391 deploy]
27309
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4391 deploy]
27310
+  (0.3ms) COMMIT [shard 4391 deploy]
27311
+ Migrating to CreateMirrorUsers (20130411202551)
27312
+  (0.1ms) BEGIN [shard 4391 deploy]
27313
+  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4391 deploy]
27314
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4391 deploy]
27315
+  (0.3ms) COMMIT [shard 4391 deploy]
27316
+ Migrating to CreateDigits (20131022202028)
27317
+  (0.1ms) BEGIN [shard 4391 deploy]
27318
+  (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 4391 deploy]
27319
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4391 deploy]
27320
+  (0.3ms) COMMIT [shard 4391 deploy]
27321
+ Migrating to CreateFeatures (20131206172923)
27322
+  (0.1ms) BEGIN [shard 4391 deploy]
27323
+  (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 4391 deploy]
27324
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4391 deploy]
27325
+  (0.3ms) COMMIT [shard 4391 deploy]
27326
+ Migrating to AddParentIdToUsers (20140123154135)
27327
+  (0.1ms) BEGIN [shard 4391 deploy]
27328
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4391 deploy]
27329
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4391 deploy]
27330
+  (0.2ms) COMMIT [shard 4391 deploy]
27331
+ Migrating to CreateRoots (20140219183820)
27332
+  (0.1ms) BEGIN [shard 4391 deploy]
27333
+  (2.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4391 deploy]
27334
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4391 deploy]
27335
+  (0.3ms) COMMIT [shard 4391 deploy]
27336
+  (0.0ms) BEGIN [shard 4389 master]
27337
+  (0.1ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4391' WHERE "switchman_shards"."id" = 4391 [shard 4389 master]
27338
+  (0.3ms) COMMIT [shard 4389 master]
27339
+  (0.1ms) BEGIN [shard 4389 master]
27340
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4389 master]
27341
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4390]] [shard 4389 master]
27342
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4391]] [shard 4389 master]
27343
+  (0.1ms) BEGIN [shard 4391 master]
27344
+  (0.1ms) SAVEPOINT active_record_1 [shard 4390 master]
27345
+ SQL (1.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 04:59:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 04:59:23 UTC +00:00]] [shard 4390 master]
27346
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4390 master]
27347
+  (0.1ms) SAVEPOINT active_record_1 [shard 4391 master]
27348
+ 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", Thu, 15 May 2014 04:59:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 04:59:23 UTC +00:00]] [shard 4391 master]
27349
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4391 master]
27350
+  (0.1ms) SAVEPOINT active_record_1 [shard 4390 master]
27351
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 04:59:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1], ["updated_at", Thu, 15 May 2014 04:59:23 UTC +00:00]] [shard 4390 master]
27352
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4390 master]
27353
+  (0.1ms) SAVEPOINT active_record_1 [shard 4390 master]
27354
+ 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", Thu, 15 May 2014 04:59:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2], ["updated_at", Thu, 15 May 2014 04:59:23 UTC +00:00]] [shard 4390 master]
27355
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4390 master]
27356
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [shard 4390 master]
27357
+  (0.1ms) ROLLBACK [shard 4391 master]
27358
+  (0.1ms) ROLLBACK [shard 4390 master]
27359
+  (0.0ms) BEGIN [shard 4389 master]
27360
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4389]] [shard 4389 master]
27361
+  (0.2ms) COMMIT [shard 4389 master]
27362
+  (0.1ms) BEGIN [shard 4389 master]
27363
+ SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4390]] [shard 4389 master]
27364
+  (0.3ms) COMMIT [shard 4389 master]
27365
+  (0.0ms) BEGIN [shard 4389 master]
27366
+ SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4391]] [shard 4389 master]
27367
+  (0.2ms) COMMIT [shard 4389 master]
27368
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4389 master]
27369
+  (4.5ms) DROP SCHEMA switchman_test_shard_4390 CASCADE [shard 4390 deploy]
27370
+  (0.1ms) BEGIN
27371
+  (0.1ms) COMMIT
27372
+  (4.8ms) DROP SCHEMA switchman_test_shard_4391 CASCADE [shard 4391 deploy]
27373
+  (0.2ms) BEGIN
27374
+  (0.1ms) COMMIT
27375
+ Connecting to database specified by database.yml
27376
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
27377
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27378
+ SQL (0.5ms) DELETE FROM "switchman_shards"
27379
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27380
+  (0.2ms) BEGIN
27381
+ Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27382
+ 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]]
27383
+  (6.3ms) COMMIT
27384
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27385
+ Switchman::Shard Load (1.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
27386
+  (0.1ms) BEGIN
27387
+ 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"]]
27388
+  (0.3ms) CREATE SCHEMA switchman_test_shard_4393 [shard 4393 deploy]
27389
+  (2.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4393 deploy]
27390
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4393 deploy]
27391
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4393 deploy]
27392
+ Migrating to CreateUsers (20130403132607)
27393
+  (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 4393 deploy]
27394
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4393 deploy]
27395
+ Migrating to CreateAppendages (20130411202442)
27396
+  (2.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4393 deploy]
27397
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4393 deploy]
27398
+ Migrating to CreateMirrorUsers (20130411202551)
27399
+  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4393 deploy]
27400
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4393 deploy]
27401
+ Migrating to CreateDigits (20131022202028)
27402
+  (3.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4393 deploy]
27403
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4393 deploy]
27404
+ Migrating to CreateFeatures (20131206172923)
27405
+  (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 4393 deploy]
27406
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4393 deploy]
27407
+ Migrating to AddParentIdToUsers (20140123154135)
27408
+  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4393 deploy]
27409
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4393 deploy]
27410
+ Migrating to CreateRoots (20140219183820)
27411
+  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4393 deploy]
27412
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4393 deploy]
27413
+  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4393' WHERE "switchman_shards"."id" = 4393 [shard 4392 master]
27414
+  (0.9ms) COMMIT [shard 4392 master]
27415
+ 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 4392 master]
27416
+  (0.1ms) BEGIN [shard 4392 master]
27417
+ 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 4392 master]
27418
+  (0.3ms) COMMIT [shard 4392 master]
27419
+  (0.6ms) CREATE SCHEMA switchman_test_shard_4394 [shard 4394 deploy]
27420
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4394 deploy]
27421
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4394 deploy]
27422
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4394 deploy]
27423
+ Migrating to CreateUsers (20130403132607)
27424
+  (0.1ms) BEGIN [shard 4394 deploy]
27425
+  (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 4394 deploy]
27426
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4394 deploy]
27427
+  (0.3ms) COMMIT [shard 4394 deploy]
27428
+ Migrating to CreateAppendages (20130411202442)
27429
+  (0.1ms) BEGIN [shard 4394 deploy]
27430
+  (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 4394 deploy]
27431
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4394 deploy]
27432
+  (0.3ms) COMMIT [shard 4394 deploy]
27433
+ Migrating to CreateMirrorUsers (20130411202551)
27434
+  (0.1ms) BEGIN [shard 4394 deploy]
27435
+  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4394 deploy]
27436
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4394 deploy]
27437
+  (0.3ms) COMMIT [shard 4394 deploy]
27438
+ Migrating to CreateDigits (20131022202028)
27439
+  (0.1ms) BEGIN [shard 4394 deploy]
27440
+  (3.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4394 deploy]
27441
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4394 deploy]
27442
+  (0.4ms) COMMIT [shard 4394 deploy]
27443
+ Migrating to CreateFeatures (20131206172923)
27444
+  (0.1ms) BEGIN [shard 4394 deploy]
27445
+  (3.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 4394 deploy]
27446
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4394 deploy]
27447
+  (0.4ms) COMMIT [shard 4394 deploy]
27448
+ Migrating to AddParentIdToUsers (20140123154135)
27449
+  (0.1ms) BEGIN [shard 4394 deploy]
27450
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4394 deploy]
27451
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4394 deploy]
27452
+  (0.3ms) COMMIT [shard 4394 deploy]
27453
+ Migrating to CreateRoots (20140219183820)
27454
+  (0.0ms) BEGIN [shard 4394 deploy]
27455
+  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4394 deploy]
27456
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4394 deploy]
27457
+  (0.3ms) COMMIT [shard 4394 deploy]
27458
+  (0.1ms) BEGIN [shard 4392 master]
27459
+  (0.1ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4394' WHERE "switchman_shards"."id" = 4394 [shard 4392 master]
27460
+  (0.3ms) COMMIT [shard 4392 master]
27461
+  (0.1ms) BEGIN [shard 4392 master]
27462
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4392 master]
27463
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4393]] [shard 4392 master]
27464
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4394]] [shard 4392 master]
27465
+  (0.0ms) BEGIN [shard 4394 master]
27466
+  (0.1ms) SAVEPOINT active_record_1 [shard 4393 master]
27467
+ SQL (1.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 04:59:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 04:59:35 UTC +00:00]] [shard 4393 master]
27468
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4393 master]
27469
+  (0.1ms) SAVEPOINT active_record_1 [shard 4394 master]
27470
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 04:59:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 04:59:35 UTC +00:00]] [shard 4394 master]
27471
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4394 master]
27472
+  (0.1ms) SAVEPOINT active_record_1 [shard 4393 master]
27473
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 04:59:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1], ["updated_at", Thu, 15 May 2014 04:59:35 UTC +00:00]] [shard 4393 master]
27474
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4393 master]
27475
+  (0.1ms) SAVEPOINT active_record_1 [shard 4393 master]
27476
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 04:59:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2], ["updated_at", Thu, 15 May 2014 04:59:35 UTC +00:00]] [shard 4393 master]
27477
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4393 master]
27478
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [shard 4393 master]
27479
+  (0.2ms) SHOW max_identifier_length [shard 4393 master]
27480
+ User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1 AND "users"."id" = 3 LIMIT 1 [shard 4393 master]
27481
+ WARNING: Can't mass-assign protected attributes: id
27482
+  (0.1ms) SAVEPOINT active_record_1 [shard 4394 master]
27483
+ 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", Thu, 15 May 2014 04:59:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 04:59:35 UTC +00:00]] [shard 4394 master]
27484
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4394 master]
27485
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 4393 LIMIT 1 [shard 4392 master]
27486
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [shard 4393 master]
27487
+ User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1 AND "users"."id" = 43940000000000002 LIMIT 1 [shard 4393 master]
27488
+  (0.1ms) ROLLBACK [shard 4394 master]
27489
+  (0.2ms) ROLLBACK [shard 4393 master]
27490
+  (0.1ms) BEGIN [shard 4392 master]
27491
+ SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4392]] [shard 4392 master]
27492
+  (14.8ms) COMMIT [shard 4392 master]
27493
+  (0.1ms) BEGIN [shard 4392 master]
27494
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4393]] [shard 4392 master]
27495
+  (4.6ms) COMMIT [shard 4392 master]
27496
+  (0.1ms) BEGIN [shard 4392 master]
27497
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4394]] [shard 4392 master]
27498
+  (0.4ms) COMMIT [shard 4392 master]
27499
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4392 master]
27500
+  (5.0ms) DROP SCHEMA switchman_test_shard_4393 CASCADE [shard 4393 deploy]
27501
+  (0.1ms) BEGIN
27502
+  (0.1ms) COMMIT
27503
+  (4.9ms) DROP SCHEMA switchman_test_shard_4394 CASCADE [shard 4394 deploy]
27504
+  (0.2ms) BEGIN
27505
+  (0.1ms) COMMIT
27506
+ Connecting to database specified by database.yml
27507
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
27508
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27509
+ SQL (0.6ms) DELETE FROM "switchman_shards"
27510
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27511
+  (0.1ms) BEGIN
27512
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27513
+ 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]]
27514
+  (0.4ms) COMMIT
27515
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27516
+ 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
27517
+  (0.1ms) BEGIN
27518
+ 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"]]
27519
+  (0.3ms) CREATE SCHEMA switchman_test_shard_4396 [shard 4396 deploy]
27520
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4396 deploy]
27521
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4396 deploy]
27522
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4396 deploy]
27523
+ Migrating to CreateUsers (20130403132607)
27524
+  (3.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 4396 deploy]
27525
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4396 deploy]
27526
+ Migrating to CreateAppendages (20130411202442)
27527
+  (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 4396 deploy]
27528
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4396 deploy]
27529
+ Migrating to CreateMirrorUsers (20130411202551)
27530
+  (2.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4396 deploy]
27531
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4396 deploy]
27532
+ Migrating to CreateDigits (20131022202028)
27533
+  (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 4396 deploy]
27534
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4396 deploy]
27535
+ Migrating to CreateFeatures (20131206172923)
27536
+  (2.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 4396 deploy]
27537
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4396 deploy]
27538
+ Migrating to AddParentIdToUsers (20140123154135)
27539
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4396 deploy]
27540
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4396 deploy]
27541
+ Migrating to CreateRoots (20140219183820)
27542
+  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4396 deploy]
27543
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4396 deploy]
27544
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4396' WHERE "switchman_shards"."id" = 4396 [shard 4395 master]
27545
+  (1.9ms) COMMIT [shard 4395 master]
27546
+ 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 4395 master]
27547
+  (0.1ms) BEGIN [shard 4395 master]
27548
+ 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 4395 master]
27549
+  (0.3ms) COMMIT [shard 4395 master]
27550
+  (0.6ms) CREATE SCHEMA switchman_test_shard_4397 [shard 4397 deploy]
27551
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4397 deploy]
27552
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4397 deploy]
27553
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4397 deploy]
27554
+ Migrating to CreateUsers (20130403132607)
27555
+  (0.1ms) BEGIN [shard 4397 deploy]
27556
+  (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 4397 deploy]
27557
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4397 deploy]
27558
+  (0.4ms) COMMIT [shard 4397 deploy]
27559
+ Migrating to CreateAppendages (20130411202442)
27560
+  (0.1ms) BEGIN [shard 4397 deploy]
27561
+  (3.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4397 deploy]
27562
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4397 deploy]
27563
+  (0.4ms) COMMIT [shard 4397 deploy]
27564
+ Migrating to CreateMirrorUsers (20130411202551)
27565
+  (0.1ms) BEGIN [shard 4397 deploy]
27566
+  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4397 deploy]
27567
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4397 deploy]
27568
+  (0.4ms) COMMIT [shard 4397 deploy]
27569
+ Migrating to CreateDigits (20131022202028)
27570
+  (0.1ms) BEGIN [shard 4397 deploy]
27571
+  (2.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4397 deploy]
27572
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4397 deploy]
27573
+  (0.3ms) COMMIT [shard 4397 deploy]
27574
+ Migrating to CreateFeatures (20131206172923)
27575
+  (0.1ms) BEGIN [shard 4397 deploy]
27576
+  (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 4397 deploy]
27577
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4397 deploy]
27578
+  (0.3ms) COMMIT [shard 4397 deploy]
27579
+ Migrating to AddParentIdToUsers (20140123154135)
27580
+  (0.1ms) BEGIN [shard 4397 deploy]
27581
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4397 deploy]
27582
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4397 deploy]
27583
+  (0.2ms) COMMIT [shard 4397 deploy]
27584
+ Migrating to CreateRoots (20140219183820)
27585
+  (0.0ms) BEGIN [shard 4397 deploy]
27586
+  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4397 deploy]
27587
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4397 deploy]
27588
+  (0.3ms) COMMIT [shard 4397 deploy]
27589
+  (0.1ms) BEGIN [shard 4395 master]
27590
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4397' WHERE "switchman_shards"."id" = 4397 [shard 4395 master]
27591
+  (0.2ms) COMMIT [shard 4395 master]
27592
+  (0.1ms) BEGIN [shard 4395 master]
27593
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27594
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27595
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27596
+  (0.1ms) BEGIN [shard 4397 master]
27597
+  (0.1ms) ROLLBACK [shard 4397 master]
27598
+  (0.1ms) ROLLBACK [shard 4395 master]
27599
+  (0.1ms) BEGIN [shard 4395 master]
27600
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27601
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27602
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27603
+  (0.0ms) BEGIN [shard 4397 master]
27604
+  (0.0ms) ROLLBACK [shard 4397 master]
27605
+  (0.0ms) ROLLBACK [shard 4395 master]
27606
+  (0.0ms) BEGIN [shard 4395 master]
27607
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27608
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27609
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27610
+  (0.1ms) BEGIN [shard 4397 master]
27611
+  (0.1ms) ROLLBACK [shard 4397 master]
27612
+  (0.1ms) ROLLBACK [shard 4395 master]
27613
+  (0.0ms) BEGIN [shard 4395 master]
27614
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27615
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27616
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27617
+  (0.0ms) BEGIN [shard 4397 master]
27618
+  (0.0ms) ROLLBACK [shard 4397 master]
27619
+  (0.0ms) ROLLBACK [shard 4395 master]
27620
+  (0.0ms) BEGIN [shard 4395 master]
27621
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27622
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27623
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27624
+  (0.0ms) BEGIN [shard 4397 master]
27625
+  (0.0ms) ROLLBACK [shard 4397 master]
27626
+  (0.0ms) ROLLBACK [shard 4395 master]
27627
+  (0.1ms) BEGIN [shard 4395 master]
27628
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27629
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27630
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27631
+  (0.1ms) BEGIN [shard 4397 master]
27632
+  (0.0ms) ROLLBACK [shard 4397 master]
27633
+  (0.0ms) ROLLBACK [shard 4395 master]
27634
+  (0.0ms) BEGIN [shard 4395 master]
27635
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27636
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27637
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27638
+  (0.0ms) BEGIN [shard 4397 master]
27639
+  (0.1ms) ROLLBACK [shard 4397 master]
27640
+  (0.1ms) ROLLBACK [shard 4395 master]
27641
+  (0.1ms) BEGIN [shard 4395 master]
27642
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27643
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27644
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27645
+  (0.0ms) BEGIN [shard 4397 master]
27646
+  (0.0ms) ROLLBACK [shard 4397 master]
27647
+  (0.0ms) ROLLBACK [shard 4395 master]
27648
+  (0.0ms) BEGIN [shard 4395 master]
27649
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27650
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27651
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27652
+  (0.0ms) BEGIN [shard 4397 master]
27653
+  (0.0ms) ROLLBACK [shard 4397 master]
27654
+  (0.0ms) ROLLBACK [shard 4395 master]
27655
+  (0.0ms) BEGIN [shard 4395 master]
27656
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27657
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27658
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27659
+  (0.0ms) BEGIN [shard 4397 master]
27660
+  (0.0ms) ROLLBACK [shard 4397 master]
27661
+  (0.0ms) ROLLBACK [shard 4395 master]
27662
+  (0.0ms) BEGIN [shard 4395 master]
27663
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27664
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27665
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27666
+  (0.0ms) BEGIN [shard 4397 master]
27667
+  (0.1ms) ROLLBACK [shard 4397 master]
27668
+  (0.0ms) ROLLBACK [shard 4395 master]
27669
+  (0.0ms) BEGIN [shard 4395 master]
27670
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27671
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27672
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27673
+  (0.0ms) BEGIN [shard 4397 master]
27674
+  (0.0ms) ROLLBACK [shard 4397 master]
27675
+  (0.0ms) ROLLBACK [shard 4395 master]
27676
+  (0.0ms) BEGIN [shard 4395 master]
27677
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27678
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27679
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27680
+  (0.0ms) BEGIN [shard 4397 master]
27681
+  (0.1ms) ROLLBACK [shard 4397 master]
27682
+  (0.1ms) ROLLBACK [shard 4395 master]
27683
+  (0.1ms) BEGIN [shard 4395 master]
27684
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27685
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27686
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27687
+  (0.1ms) BEGIN [shard 4397 master]
27688
+  (0.1ms) ROLLBACK [shard 4397 master]
27689
+  (0.1ms) ROLLBACK [shard 4395 master]
27690
+  (0.0ms) BEGIN [shard 4395 master]
27691
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27692
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27693
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27694
+  (0.0ms) BEGIN [shard 4397 master]
27695
+  (0.0ms) ROLLBACK [shard 4397 master]
27696
+  (0.0ms) ROLLBACK [shard 4395 master]
27697
+ SQL (1.7ms) DELETE FROM "users" [shard 4395 master]
27698
+ SQL (0.1ms) DELETE FROM "users" [shard 4395 master]
27699
+ SQL (0.1ms) DELETE FROM "users" [shard 4395 master]
27700
+  (0.0ms) BEGIN [shard 4395 master]
27701
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27702
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27703
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27704
+  (0.1ms) BEGIN [shard 4397 master]
27705
+  (0.0ms) ROLLBACK [shard 4397 master]
27706
+  (0.1ms) ROLLBACK [shard 4395 master]
27707
+  (0.0ms) BEGIN [shard 4395 master]
27708
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27709
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27710
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27711
+  (0.1ms) BEGIN [shard 4397 master]
27712
+  (0.0ms) ROLLBACK [shard 4397 master]
27713
+  (0.1ms) ROLLBACK [shard 4395 master]
27714
+ SQL (0.1ms) DELETE FROM "users" [shard 4395 master]
27715
+ SQL (0.1ms) DELETE FROM "users" [shard 4395 master]
27716
+  (0.0ms) BEGIN [shard 4395 master]
27717
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27718
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27719
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27720
+  (0.1ms) BEGIN [shard 4397 master]
27721
+  (0.1ms) ROLLBACK [shard 4397 master]
27722
+  (0.1ms) ROLLBACK [shard 4395 master]
27723
+  (0.1ms) BEGIN [shard 4395 master]
27724
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27725
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27726
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27727
+  (0.0ms) BEGIN [shard 4397 master]
27728
+  (0.1ms) ROLLBACK [shard 4397 master]
27729
+  (0.1ms) ROLLBACK [shard 4395 master]
27730
+  (0.0ms) BEGIN [shard 4395 master]
27731
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27732
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27733
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27734
+  (0.1ms) BEGIN [shard 4397 master]
27735
+  (0.1ms) ROLLBACK [shard 4397 master]
27736
+  (0.1ms) ROLLBACK [shard 4395 master]
27737
+  (0.0ms) BEGIN [shard 4395 master]
27738
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27739
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27740
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27741
+  (0.0ms) BEGIN [shard 4397 master]
27742
+  (0.0ms) ROLLBACK [shard 4397 master]
27743
+  (0.1ms) ROLLBACK [shard 4395 master]
27744
+  (0.1ms) BEGIN [shard 4395 master]
27745
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27746
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27747
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27748
+  (0.1ms) BEGIN [shard 4397 master]
27749
+  (0.1ms) ROLLBACK [shard 4397 master]
27750
+  (0.1ms) ROLLBACK [shard 4395 master]
27751
+  (0.1ms) BEGIN [shard 4395 master]
27752
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27753
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27754
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27755
+  (0.1ms) BEGIN [shard 4397 master]
27756
+  (0.1ms) ROLLBACK [shard 4397 master]
27757
+  (0.1ms) ROLLBACK [shard 4395 master]
27758
+  (0.1ms) BEGIN [shard 4395 master]
27759
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27760
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27761
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27762
+  (0.1ms) BEGIN [shard 4397 master]
27763
+  (0.1ms) ROLLBACK [shard 4397 master]
27764
+  (0.1ms) ROLLBACK [shard 4395 master]
27765
+  (0.1ms) BEGIN [shard 4395 master]
27766
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27767
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4396]] [shard 4395 master]
27768
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4397]] [shard 4395 master]
27769
+  (0.0ms) BEGIN [shard 4397 master]
27770
+  (0.0ms) ROLLBACK [shard 4397 master]
27771
+  (0.1ms) ROLLBACK [shard 4395 master]
27772
+  (0.1ms) BEGIN [shard 4395 master]
27773
+ SQL (0.6ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4395]] [shard 4395 master]
27774
+  (0.6ms) COMMIT [shard 4395 master]
27775
+  (0.1ms) BEGIN [shard 4395 master]
27776
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4396]] [shard 4395 master]
27777
+  (0.4ms) COMMIT [shard 4395 master]
27778
+  (0.1ms) BEGIN [shard 4395 master]
27779
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4397]] [shard 4395 master]
27780
+  (0.3ms) COMMIT [shard 4395 master]
27781
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4395 master]
27782
+  (4.8ms) DROP SCHEMA switchman_test_shard_4396 CASCADE [shard 4396 deploy]
27783
+  (0.1ms) BEGIN
27784
+  (0.1ms) COMMIT
27785
+  (5.3ms) DROP SCHEMA switchman_test_shard_4397 CASCADE [shard 4397 deploy]
27786
+  (0.2ms) BEGIN
27787
+  (0.1ms) COMMIT
27788
+ Connecting to database specified by database.yml
27789
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
27790
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27791
+ SQL (0.6ms) DELETE FROM "switchman_shards"
27792
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27793
+  (0.1ms) BEGIN
27794
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27795
+ 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]]
27796
+  (6.5ms) COMMIT
27797
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27798
+ 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
27799
+  (0.1ms) BEGIN
27800
+ 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"]]
27801
+  (0.2ms) CREATE SCHEMA switchman_test_shard_4399 [shard 4399 deploy]
27802
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4399 deploy]
27803
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4399 deploy]
27804
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4399 deploy]
27805
+ Migrating to CreateUsers (20130403132607)
27806
+  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4399 deploy]
27807
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4399 deploy]
27808
+ Migrating to CreateAppendages (20130411202442)
27809
+  (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 4399 deploy]
27810
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4399 deploy]
27811
+ Migrating to CreateMirrorUsers (20130411202551)
27812
+  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4399 deploy]
27813
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4399 deploy]
27814
+ Migrating to CreateDigits (20131022202028)
27815
+  (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 4399 deploy]
27816
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4399 deploy]
27817
+ Migrating to CreateFeatures (20131206172923)
27818
+  (3.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 4399 deploy]
27819
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4399 deploy]
27820
+ Migrating to AddParentIdToUsers (20140123154135)
27821
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4399 deploy]
27822
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4399 deploy]
27823
+ Migrating to CreateRoots (20140219183820)
27824
+  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4399 deploy]
27825
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4399 deploy]
27826
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4399' WHERE "switchman_shards"."id" = 4399 [shard 4398 master]
27827
+  (0.9ms) COMMIT [shard 4398 master]
27828
+ 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 4398 master]
27829
+  (0.1ms) BEGIN [shard 4398 master]
27830
+ 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 4398 master]
27831
+  (0.2ms) COMMIT [shard 4398 master]
27832
+  (0.6ms) CREATE SCHEMA switchman_test_shard_4400 [shard 4400 deploy]
27833
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4400 deploy]
27834
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4400 deploy]
27835
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4400 deploy]
27836
+ Migrating to CreateUsers (20130403132607)
27837
+  (0.1ms) BEGIN [shard 4400 deploy]
27838
+  (3.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 4400 deploy]
27839
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4400 deploy]
27840
+  (1.0ms) COMMIT [shard 4400 deploy]
27841
+ Migrating to CreateAppendages (20130411202442)
27842
+  (0.1ms) BEGIN [shard 4400 deploy]
27843
+  (4.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4400 deploy]
27844
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4400 deploy]
27845
+  (0.4ms) COMMIT [shard 4400 deploy]
27846
+ Migrating to CreateMirrorUsers (20130411202551)
27847
+  (0.1ms) BEGIN [shard 4400 deploy]
27848
+  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4400 deploy]
27849
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4400 deploy]
27850
+  (0.3ms) COMMIT [shard 4400 deploy]
27851
+ Migrating to CreateDigits (20131022202028)
27852
+  (0.1ms) BEGIN [shard 4400 deploy]
27853
+  (2.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4400 deploy]
27854
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4400 deploy]
27855
+  (0.3ms) COMMIT [shard 4400 deploy]
27856
+ Migrating to CreateFeatures (20131206172923)
27857
+  (0.1ms) BEGIN [shard 4400 deploy]
27858
+  (2.3ms) 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 4400 deploy]
27859
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4400 deploy]
27860
+  (0.3ms) COMMIT [shard 4400 deploy]
27861
+ Migrating to AddParentIdToUsers (20140123154135)
27862
+  (0.1ms) BEGIN [shard 4400 deploy]
27863
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4400 deploy]
27864
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4400 deploy]
27865
+  (0.3ms) COMMIT [shard 4400 deploy]
27866
+ Migrating to CreateRoots (20140219183820)
27867
+  (0.1ms) BEGIN [shard 4400 deploy]
27868
+  (2.4ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4400 deploy]
27869
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4400 deploy]
27870
+  (0.4ms) COMMIT [shard 4400 deploy]
27871
+  (0.1ms) BEGIN [shard 4398 master]
27872
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4400' WHERE "switchman_shards"."id" = 4400 [shard 4398 master]
27873
+  (0.4ms) COMMIT [shard 4398 master]
27874
+  (0.1ms) BEGIN [shard 4398 master]
27875
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4398 master]
27876
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4399]] [shard 4398 master]
27877
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4400]] [shard 4398 master]
27878
+  (0.1ms) BEGIN [shard 4400 master]
27879
+ Connecting to database specified by database.yml
27880
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
27881
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27882
+  (0.3ms) SELECT * FROM unnest(current_schemas(false))
27883
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL LIMIT 1
27884
+  (33.4ms) SELECT * FROM unnest(current_schemas(false)) [shard master]
27885
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'testm' AND "switchman_shards"."name" IS NULL LIMIT 1
27886
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'tests' AND "switchman_shards"."name" IS NULL LIMIT 1
27887
+ SQL (1.0ms) DELETE FROM "switchman_shards" [shard 4398 master]
27888
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4398 master]
27889
+  (0.1ms) BEGIN [shard 4398 master]
27890
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4398 master]
27891
+ 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]] [shard 4398 master]
27892
+  (0.4ms) COMMIT [shard 4398 master]
27893
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4398 master]
27894
+ 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 [shard 4401 master]
27895
+  (0.1ms) BEGIN [shard 4401 master]
27896
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 4401 master]
27897
+  (0.2ms) CREATE SCHEMA switchman_test_shard_4402 [shard 4402 deploy]
27898
+  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 4402 deploy]
27899
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4402 deploy]
27900
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 4402 deploy]
27901
+ Migrating to CreateUsers (20130403132607)
27902
+  (2.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 4402 deploy]
27903
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4402 deploy]
27904
+ Migrating to CreateAppendages (20130411202442)
27905
+  (2.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4402 deploy]
27906
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4402 deploy]
27907
+ Migrating to CreateMirrorUsers (20130411202551)
27908
+  (2.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4402 deploy]
27909
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4402 deploy]
27910
+ Migrating to CreateDigits (20131022202028)
27911
+  (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 4402 deploy]
27912
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4402 deploy]
27913
+ Migrating to CreateFeatures (20131206172923)
27914
+  (2.4ms) 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 4402 deploy]
27915
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4402 deploy]
27916
+ Migrating to AddParentIdToUsers (20140123154135)
27917
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4402 deploy]
27918
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4402 deploy]
27919
+ Migrating to CreateRoots (20140219183820)
27920
+  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4402 deploy]
27921
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4402 deploy]
27922
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4402' WHERE "switchman_shards"."id" = 4402 [shard 4401 master]
27923
+  (0.8ms) COMMIT [shard 4401 master]
27924
+ 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 4401 master]
27925
+  (0.1ms) BEGIN [shard 4401 master]
27926
+ 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 4401 master]
27927
+  (0.3ms) COMMIT [shard 4401 master]
27928
+  (0.7ms) CREATE SCHEMA switchman_test_shard_4403 [shard 4403 deploy]
27929
+  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 4403 deploy]
27930
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4403 deploy]
27931
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 4403 deploy]
27932
+ Migrating to CreateUsers (20130403132607)
27933
+  (0.1ms) BEGIN [shard 4403 deploy]
27934
+  (2.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 4403 deploy]
27935
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4403 deploy]
27936
+  (0.4ms) COMMIT [shard 4403 deploy]
27937
+ Migrating to CreateAppendages (20130411202442)
27938
+  (0.1ms) BEGIN [shard 4403 deploy]
27939
+  (3.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4403 deploy]
27940
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4403 deploy]
27941
+  (0.4ms) COMMIT [shard 4403 deploy]
27942
+ Migrating to CreateMirrorUsers (20130411202551)
27943
+  (0.1ms) BEGIN [shard 4403 deploy]
27944
+  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4403 deploy]
27945
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4403 deploy]
27946
+  (0.4ms) COMMIT [shard 4403 deploy]
27947
+ Migrating to CreateDigits (20131022202028)
27948
+  (0.1ms) BEGIN [shard 4403 deploy]
27949
+  (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 4403 deploy]
27950
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4403 deploy]
27951
+  (0.3ms) COMMIT [shard 4403 deploy]
27952
+ Migrating to CreateFeatures (20131206172923)
27953
+  (0.1ms) BEGIN [shard 4403 deploy]
27954
+  (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 4403 deploy]
27955
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4403 deploy]
27956
+  (0.3ms) COMMIT [shard 4403 deploy]
27957
+ Migrating to AddParentIdToUsers (20140123154135)
27958
+  (0.1ms) BEGIN [shard 4403 deploy]
27959
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4403 deploy]
27960
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4403 deploy]
27961
+  (0.2ms) COMMIT [shard 4403 deploy]
27962
+ Migrating to CreateRoots (20140219183820)
27963
+  (0.1ms) BEGIN [shard 4403 deploy]
27964
+  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4403 deploy]
27965
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4403 deploy]
27966
+  (0.3ms) COMMIT [shard 4403 deploy]
27967
+  (0.1ms) BEGIN [shard 4401 master]
27968
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4403' WHERE "switchman_shards"."id" = 4403 [shard 4401 master]
27969
+  (0.3ms) COMMIT [shard 4401 master]
27970
+  (0.1ms) BEGIN [shard 4401 master]
27971
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4401 master]
27972
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4402]] [shard 4401 master]
27973
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4403]] [shard 4401 master]
27974
+  (0.1ms) BEGIN [shard 4403 master]
27975
+  (0.1ms) SAVEPOINT active_record_1 [shard 4402 master]
27976
+ SQL (2.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:17:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:17:10 UTC +00:00]] [shard 4402 master]
27977
+  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 4402 master]
27978
+  (0.1ms) SAVEPOINT active_record_1 [shard 4402 master]
27979
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:17:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:17:10 UTC +00:00]] [shard 4402 master]
27980
+  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 4402 master]
27981
+  (0.1ms) SAVEPOINT active_record_1 [shard 4401 master]
27982
+ SQL (2.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:17:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:17:10 UTC +00:00]] [shard 4401 master]
27983
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4401 master]
27984
+ User Load (0.3ms) SELECT "users".* FROM "users"  [shard 4402 master]
27985
+ User Load (0.2ms) SELECT "users".* FROM "users" [shard 4401 master]
27986
+  (0.2ms) ROLLBACK [shard 4403 master]
27987
+  (0.2ms) ROLLBACK [shard 4401 master]
27988
+  (0.1ms) BEGIN [shard 4401 master]
27989
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4401 master]
27990
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4402]] [shard 4401 master]
27991
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4403]] [shard 4401 master]
27992
+  (0.1ms) BEGIN [shard 4403 master]
27993
+ Connecting to database specified by database.yml
27994
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
27995
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
27996
+  (0.2ms) SELECT * FROM unnest(current_schemas(false))
27997
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL LIMIT 1
27998
+  (0.5ms) SELECT * FROM unnest(current_schemas(false)) [shard master]
27999
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'testm' AND "switchman_shards"."name" IS NULL LIMIT 1
28000
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'tests' AND "switchman_shards"."name" IS NULL LIMIT 1
28001
+ SQL (7.2ms) DELETE FROM "switchman_shards" [shard 4401 master]
28002
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4401 master]
28003
+  (0.1ms) BEGIN [shard 4401 master]
28004
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4401 master]
28005
+ 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]] [shard 4401 master]
28006
+  (0.3ms) COMMIT [shard 4401 master]
28007
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4401 master]
28008
+ Switchman::Shard Load (1.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 4404 master]
28009
+  (0.1ms) BEGIN [shard 4404 master]
28010
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 4404 master]
28011
+  (0.3ms) CREATE SCHEMA switchman_test_shard_4405 [shard 4405 deploy]
28012
+  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 4405 deploy]
28013
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4405 deploy]
28014
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 4405 deploy]
28015
+ Migrating to CreateUsers (20130403132607)
28016
+  (2.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 4405 deploy]
28017
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4405 deploy]
28018
+ Migrating to CreateAppendages (20130411202442)
28019
+  (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 4405 deploy]
28020
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4405 deploy]
28021
+ Migrating to CreateMirrorUsers (20130411202551)
28022
+  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4405 deploy]
28023
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4405 deploy]
28024
+ Migrating to CreateDigits (20131022202028)
28025
+  (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 4405 deploy]
28026
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4405 deploy]
28027
+ Migrating to CreateFeatures (20131206172923)
28028
+  (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 4405 deploy]
28029
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4405 deploy]
28030
+ Migrating to AddParentIdToUsers (20140123154135)
28031
+  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4405 deploy]
28032
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4405 deploy]
28033
+ Migrating to CreateRoots (20140219183820)
28034
+  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4405 deploy]
28035
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4405 deploy]
28036
+  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4405' WHERE "switchman_shards"."id" = 4405 [shard 4404 master]
28037
+  (2.1ms) COMMIT [shard 4404 master]
28038
+ Switchman::Shard Load (0.7ms) 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 4404 master]
28039
+  (0.1ms) BEGIN [shard 4404 master]
28040
+ 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 4404 master]
28041
+  (0.2ms) COMMIT [shard 4404 master]
28042
+  (0.6ms) CREATE SCHEMA switchman_test_shard_4406 [shard 4406 deploy]
28043
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 4406 deploy]
28044
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4406 deploy]
28045
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 4406 deploy]
28046
+ Migrating to CreateUsers (20130403132607)
28047
+  (0.1ms) BEGIN [shard 4406 deploy]
28048
+  (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 4406 deploy]
28049
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4406 deploy]
28050
+  (0.3ms) COMMIT [shard 4406 deploy]
28051
+ Migrating to CreateAppendages (20130411202442)
28052
+  (0.1ms) BEGIN [shard 4406 deploy]
28053
+  (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 4406 deploy]
28054
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4406 deploy]
28055
+  (0.3ms) COMMIT [shard 4406 deploy]
28056
+ Migrating to CreateMirrorUsers (20130411202551)
28057
+  (0.1ms) BEGIN [shard 4406 deploy]
28058
+  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4406 deploy]
28059
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4406 deploy]
28060
+  (0.3ms) COMMIT [shard 4406 deploy]
28061
+ Migrating to CreateDigits (20131022202028)
28062
+  (0.1ms) BEGIN [shard 4406 deploy]
28063
+  (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 4406 deploy]
28064
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4406 deploy]
28065
+  (0.4ms) COMMIT [shard 4406 deploy]
28066
+ Migrating to CreateFeatures (20131206172923)
28067
+  (0.1ms) BEGIN [shard 4406 deploy]
28068
+  (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 4406 deploy]
28069
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4406 deploy]
28070
+  (0.4ms) COMMIT [shard 4406 deploy]
28071
+ Migrating to AddParentIdToUsers (20140123154135)
28072
+  (0.1ms) BEGIN [shard 4406 deploy]
28073
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4406 deploy]
28074
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4406 deploy]
28075
+  (0.3ms) COMMIT [shard 4406 deploy]
28076
+ Migrating to CreateRoots (20140219183820)
28077
+  (0.1ms) BEGIN [shard 4406 deploy]
28078
+  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4406 deploy]
28079
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4406 deploy]
28080
+  (0.3ms) COMMIT [shard 4406 deploy]
28081
+  (0.1ms) BEGIN [shard 4404 master]
28082
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4406' WHERE "switchman_shards"."id" = 4406 [shard 4404 master]
28083
+  (0.3ms) COMMIT [shard 4404 master]
28084
+  (0.1ms) BEGIN [shard 4404 master]
28085
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28086
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28087
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28088
+  (0.1ms) BEGIN [shard 4406 master]
28089
+  (0.1ms) SAVEPOINT active_record_1 [shard 4405 master]
28090
+ SQL (1.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:18:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:01 UTC +00:00]] [shard 4405 master]
28091
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4405 master]
28092
+  (0.1ms) SAVEPOINT active_record_1 [shard 4405 master]
28093
+ 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", Thu, 15 May 2014 05:18:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:01 UTC +00:00]] [shard 4405 master]
28094
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4405 master]
28095
+  (0.1ms) SAVEPOINT active_record_1 [shard 4404 master]
28096
+ 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", Thu, 15 May 2014 05:18:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:01 UTC +00:00]] [shard 4404 master]
28097
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4404 master]
28098
+ User Load (0.2ms) SELECT "users".* FROM "users"  [shard 4405 master]
28099
+ User Load (0.3ms) SELECT "users".* FROM "users" [shard 4404 master]
28100
+  (0.2ms) ROLLBACK [shard 4406 master]
28101
+  (0.3ms) ROLLBACK [shard 4404 master]
28102
+  (0.1ms) BEGIN [shard 4404 master]
28103
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28104
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28105
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28106
+  (0.1ms) BEGIN [shard 4406 master]
28107
+  (0.1ms) ROLLBACK [shard 4406 master]
28108
+  (0.1ms) ROLLBACK [shard 4404 master]
28109
+  (0.1ms) BEGIN [shard 4404 master]
28110
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28111
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28112
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28113
+  (0.1ms) BEGIN [shard 4406 master]
28114
+  (0.1ms) ROLLBACK [shard 4406 master]
28115
+  (0.1ms) ROLLBACK [shard 4404 master]
28116
+  (0.1ms) BEGIN [shard 4404 master]
28117
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28118
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28119
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28120
+  (0.1ms) BEGIN [shard 4406 master]
28121
+  (0.1ms) ROLLBACK [shard 4406 master]
28122
+  (0.1ms) ROLLBACK [shard 4404 master]
28123
+  (0.1ms) BEGIN [shard 4404 master]
28124
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28125
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28126
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28127
+  (0.1ms) BEGIN [shard 4406 master]
28128
+  (0.1ms) SAVEPOINT active_record_1 [shard 4404 master]
28129
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:18:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:01 UTC +00:00]] [shard 4404 master]
28130
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4404 master]
28131
+  (0.2ms) ROLLBACK [shard 4406 master]
28132
+  (0.1ms) ROLLBACK [shard 4404 master]
28133
+  (0.1ms) BEGIN [shard 4404 master]
28134
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28135
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28136
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28137
+  (0.1ms) BEGIN [shard 4406 master]
28138
+  (0.1ms) SAVEPOINT active_record_1 [shard 4404 master]
28139
+ 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", Thu, 15 May 2014 05:18:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:01 UTC +00:00]] [shard 4404 master]
28140
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4404 master]
28141
+  (0.1ms) ROLLBACK [shard 4406 master]
28142
+  (0.1ms) ROLLBACK [shard 4404 master]
28143
+  (0.1ms) BEGIN [shard 4404 master]
28144
+ 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", Thu, 15 May 2014 05:18:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:01 UTC +00:00]] [shard 4404 master]
28145
+  (0.3ms) COMMIT [shard 4404 master]
28146
+ SQL (0.3ms) DELETE FROM "users" [shard 4404 master]
28147
+  (0.1ms) BEGIN [shard 4404 master]
28148
+ 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", Thu, 15 May 2014 05:18:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:01 UTC +00:00]] [shard 4404 master]
28149
+  (0.3ms) COMMIT [shard 4404 master]
28150
+ SQL (0.3ms) DELETE FROM "users" [shard 4404 master]
28151
+  (0.1ms) BEGIN [shard 4404 master]
28152
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28153
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28154
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28155
+  (0.1ms) BEGIN [shard 4406 master]
28156
+ User Load (0.4ms) SELECT "users".* FROM "users" FOR UPDATE [shard 4404 master]
28157
+  (0.2ms) ROLLBACK [shard 4406 master]
28158
+  (0.1ms) ROLLBACK [shard 4404 master]
28159
+  (0.0ms) BEGIN [shard 4404 master]
28160
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28161
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28162
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28163
+  (0.1ms) BEGIN [shard 4406 master]
28164
+ User Load (0.3ms) SELECT "users".* FROM "users"  [shard 4404 master]
28165
+  (0.1ms) ROLLBACK [shard 4406 master]
28166
+  (0.1ms) ROLLBACK [shard 4404 master]
28167
+  (0.1ms) BEGIN [shard 4404 master]
28168
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28169
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28170
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28171
+  (0.1ms) BEGIN [shard 4406 master]
28172
+ User Load (0.3ms) SELECT "users".* FROM "users"  [shard 4404 master]
28173
+  (0.1ms) ROLLBACK [shard 4406 master]
28174
+  (0.1ms) ROLLBACK [shard 4404 master]
28175
+  (0.1ms) BEGIN [shard 4404 master]
28176
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28177
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28178
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28179
+  (0.1ms) BEGIN [shard 4406 master]
28180
+  (0.1ms) ROLLBACK [shard 4406 master]
28181
+  (0.1ms) ROLLBACK [shard 4404 master]
28182
+  (0.1ms) BEGIN [shard 4404 master]
28183
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28184
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28185
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28186
+  (0.1ms) BEGIN [shard 4406 master]
28187
+  (0.1ms) ROLLBACK [shard 4406 master]
28188
+  (0.1ms) ROLLBACK [shard 4404 master]
28189
+  (0.1ms) BEGIN [shard 4404 master]
28190
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28191
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28192
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28193
+  (0.1ms) BEGIN [shard 4406 master]
28194
+  (0.1ms) ROLLBACK [shard 4406 master]
28195
+  (0.1ms) ROLLBACK [shard 4404 master]
28196
+  (0.1ms) BEGIN [shard 4404 master]
28197
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28198
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28199
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28200
+  (0.1ms) BEGIN [shard 4406 master]
28201
+  (0.1ms) ROLLBACK [shard 4406 master]
28202
+  (0.1ms) ROLLBACK [shard 4404 master]
28203
+  (0.1ms) BEGIN [shard 4404 master]
28204
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28205
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28206
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28207
+  (0.1ms) BEGIN [shard 4406 master]
28208
+  (0.1ms) ROLLBACK [shard 4406 master]
28209
+  (0.1ms) ROLLBACK [shard 4404 master]
28210
+  (0.1ms) BEGIN [shard 4404 master]
28211
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28212
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28213
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28214
+  (0.1ms) BEGIN [shard 4406 master]
28215
+  (0.2ms) SAVEPOINT active_record_1 [shard 4404 master]
28216
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:18:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:02 UTC +00:00]] [shard 4404 master]
28217
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4404 master]
28218
+  (0.2ms) ROLLBACK [shard 4406 master]
28219
+  (0.1ms) ROLLBACK [shard 4404 master]
28220
+  (0.1ms) BEGIN [shard 4404 master]
28221
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28222
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28223
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28224
+  (0.1ms) BEGIN [shard 4406 master]
28225
+  (0.2ms) SAVEPOINT active_record_1 [shard 4404 master]
28226
+ 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", Thu, 15 May 2014 05:18:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:02 UTC +00:00]] [shard 4404 master]
28227
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4404 master]
28228
+  (0.2ms) ROLLBACK [shard 4406 master]
28229
+  (0.1ms) ROLLBACK [shard 4404 master]
28230
+  (0.1ms) BEGIN [shard 4404 master]
28231
+ 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", Thu, 15 May 2014 05:18:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:02 UTC +00:00]] [shard 4404 master]
28232
+  (0.3ms) COMMIT [shard 4404 master]
28233
+  (0.1ms) BEGIN [shard 4404 master]
28234
+ 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", Thu, 15 May 2014 05:18:02 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:02 UTC +00:00]] [shard 4404 master]
28235
+  (0.3ms) COMMIT [shard 4404 master]
28236
+ SQL (0.6ms) DELETE FROM "users" [shard 4404 master]
28237
+  (0.1ms) BEGIN [shard 4404 master]
28238
+ 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", Thu, 15 May 2014 05:18:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:02 UTC +00:00]] [shard 4404 master]
28239
+  (0.3ms) COMMIT [shard 4404 master]
28240
+ SQL (0.3ms) DELETE FROM "users" [shard 4404 master]
28241
+  (0.1ms) BEGIN [shard 4404 master]
28242
+ 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", Thu, 15 May 2014 05:18:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:02 UTC +00:00]] [shard 4404 master]
28243
+  (0.3ms) COMMIT [shard 4404 master]
28244
+ SQL (0.3ms) DELETE FROM "users" [shard 4404 master]
28245
+  (0.1ms) BEGIN [shard 4404 master]
28246
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28247
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28248
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28249
+  (0.1ms) BEGIN [shard 4406 master]
28250
+  (0.1ms) ROLLBACK [shard 4406 master]
28251
+  (0.1ms) ROLLBACK [shard 4404 master]
28252
+  (0.1ms) BEGIN [shard 4404 master]
28253
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28254
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28255
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28256
+  (0.1ms) BEGIN [shard 4406 master]
28257
+  (0.1ms) ROLLBACK [shard 4406 master]
28258
+  (0.1ms) ROLLBACK [shard 4404 master]
28259
+  (0.1ms) BEGIN [shard 4404 master]
28260
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28261
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28262
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28263
+  (0.1ms) BEGIN [shard 4406 master]
28264
+  (0.1ms) ROLLBACK [shard 4406 master]
28265
+  (0.1ms) ROLLBACK [shard 4404 master]
28266
+  (0.0ms) BEGIN [shard 4404 master]
28267
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28268
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28269
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28270
+  (0.1ms) BEGIN [shard 4406 master]
28271
+  (0.3ms) ROLLBACK [shard 4406 master]
28272
+  (0.1ms) ROLLBACK [shard 4404 master]
28273
+  (0.1ms) BEGIN [shard 4404 master]
28274
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28275
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28276
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28277
+  (0.1ms) BEGIN [shard 4406 master]
28278
+  (0.1ms) ROLLBACK [shard 4406 master]
28279
+  (0.2ms) ROLLBACK [shard 4404 master]
28280
+  (0.1ms) BEGIN [shard 4404 master]
28281
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28282
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28283
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28284
+  (0.1ms) BEGIN [shard 4406 master]
28285
+  (0.1ms) ROLLBACK [shard 4406 master]
28286
+  (0.1ms) ROLLBACK [shard 4404 master]
28287
+  (0.0ms) BEGIN [shard 4404 master]
28288
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28289
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28290
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28291
+  (0.1ms) BEGIN [shard 4406 master]
28292
+  (0.1ms) ROLLBACK [shard 4406 master]
28293
+  (0.1ms) ROLLBACK [shard 4404 master]
28294
+  (0.1ms) BEGIN [shard 4404 master]
28295
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28296
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28297
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28298
+  (0.1ms) BEGIN [shard 4406 master]
28299
+  (0.1ms) ROLLBACK [shard 4406 master]
28300
+  (0.1ms) ROLLBACK [shard 4404 master]
28301
+  (0.1ms) BEGIN [shard 4404 master]
28302
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28303
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4405]] [shard 4404 master]
28304
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4406]] [shard 4404 master]
28305
+  (0.1ms) BEGIN [shard 4406 master]
28306
+  (0.1ms) ROLLBACK [shard 4406 master]
28307
+  (0.1ms) ROLLBACK [shard 4404 master]
28308
+  (0.1ms) BEGIN [shard 4404 master]
28309
+ SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4404]] [shard 4404 master]
28310
+  (0.4ms) COMMIT [shard 4404 master]
28311
+  (0.1ms) BEGIN [shard 4404 master]
28312
+ SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4405]] [shard 4404 master]
28313
+  (0.4ms) COMMIT [shard 4404 master]
28314
+  (0.1ms) BEGIN [shard 4404 master]
28315
+ SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4406]] [shard 4404 master]
28316
+  (0.3ms) COMMIT [shard 4404 master]
28317
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4404 master]
28318
+  (4.7ms) DROP SCHEMA switchman_test_shard_4405 CASCADE [shard 4405 deploy]
28319
+  (0.1ms) BEGIN
28320
+  (0.1ms) COMMIT
28321
+  (5.1ms) DROP SCHEMA switchman_test_shard_4406 CASCADE [shard 4406 deploy]
28322
+  (0.3ms) BEGIN
28323
+  (0.1ms) COMMIT
28324
+ Connecting to database specified by database.yml
28325
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
28326
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
28327
+ SQL (0.8ms) DELETE FROM "switchman_shards"
28328
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
28329
+  (0.1ms) BEGIN
28330
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
28331
+ 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]]
28332
+  (6.5ms) COMMIT
28333
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
28334
+ 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
28335
+  (0.1ms) BEGIN
28336
+ 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"]]
28337
+  (0.3ms) CREATE SCHEMA switchman_test_shard_4408 [shard 4408 deploy]
28338
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4408 deploy]
28339
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4408 deploy]
28340
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4408 deploy]
28341
+ Migrating to CreateUsers (20130403132607)
28342
+  (3.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4408 deploy]
28343
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4408 deploy]
28344
+ Migrating to CreateAppendages (20130411202442)
28345
+  (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 4408 deploy]
28346
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4408 deploy]
28347
+ Migrating to CreateMirrorUsers (20130411202551)
28348
+  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4408 deploy]
28349
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4408 deploy]
28350
+ Migrating to CreateDigits (20131022202028)
28351
+  (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 4408 deploy]
28352
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4408 deploy]
28353
+ Migrating to CreateFeatures (20131206172923)
28354
+  (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 4408 deploy]
28355
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4408 deploy]
28356
+ Migrating to AddParentIdToUsers (20140123154135)
28357
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4408 deploy]
28358
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4408 deploy]
28359
+ Migrating to CreateRoots (20140219183820)
28360
+  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4408 deploy]
28361
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4408 deploy]
28362
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4408' WHERE "switchman_shards"."id" = 4408 [shard 4407 master]
28363
+  (0.8ms) COMMIT [shard 4407 master]
28364
+ 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 4407 master]
28365
+  (0.1ms) BEGIN [shard 4407 master]
28366
+ 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 4407 master]
28367
+  (0.2ms) COMMIT [shard 4407 master]
28368
+  (0.6ms) CREATE SCHEMA switchman_test_shard_4409 [shard 4409 deploy]
28369
+  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4409 deploy]
28370
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4409 deploy]
28371
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4409 deploy]
28372
+ Migrating to CreateUsers (20130403132607)
28373
+  (0.1ms) BEGIN [shard 4409 deploy]
28374
+  (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 4409 deploy]
28375
+  (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4409 deploy]
28376
+  (0.4ms) COMMIT [shard 4409 deploy]
28377
+ Migrating to CreateAppendages (20130411202442)
28378
+  (0.1ms) BEGIN [shard 4409 deploy]
28379
+  (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 4409 deploy]
28380
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4409 deploy]
28381
+  (0.3ms) COMMIT [shard 4409 deploy]
28382
+ Migrating to CreateMirrorUsers (20130411202551)
28383
+  (0.1ms) BEGIN [shard 4409 deploy]
28384
+  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4409 deploy]
28385
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4409 deploy]
28386
+  (0.3ms) COMMIT [shard 4409 deploy]
28387
+ Migrating to CreateDigits (20131022202028)
28388
+  (0.1ms) BEGIN [shard 4409 deploy]
28389
+  (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 4409 deploy]
28390
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4409 deploy]
28391
+  (0.4ms) COMMIT [shard 4409 deploy]
28392
+ Migrating to CreateFeatures (20131206172923)
28393
+  (0.1ms) BEGIN [shard 4409 deploy]
28394
+  (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 4409 deploy]
28395
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4409 deploy]
28396
+  (0.3ms) COMMIT [shard 4409 deploy]
28397
+ Migrating to AddParentIdToUsers (20140123154135)
28398
+  (0.1ms) BEGIN [shard 4409 deploy]
28399
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4409 deploy]
28400
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4409 deploy]
28401
+  (0.2ms) COMMIT [shard 4409 deploy]
28402
+ Migrating to CreateRoots (20140219183820)
28403
+  (0.1ms) BEGIN [shard 4409 deploy]
28404
+  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4409 deploy]
28405
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4409 deploy]
28406
+  (0.4ms) COMMIT [shard 4409 deploy]
28407
+  (0.1ms) BEGIN [shard 4407 master]
28408
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4409' WHERE "switchman_shards"."id" = 4409 [shard 4407 master]
28409
+  (0.3ms) COMMIT [shard 4407 master]
28410
+  (0.1ms) BEGIN [shard 4407 master]
28411
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28412
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28413
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28414
+  (0.1ms) BEGIN [shard 4409 master]
28415
+  (0.1ms) SAVEPOINT active_record_1 [shard 4408 master]
28416
+ SQL (1.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:18:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:15 UTC +00:00]] [shard 4408 master]
28417
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4408 master]
28418
+  (0.1ms) SAVEPOINT active_record_1 [shard 4408 master]
28419
+ 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", Thu, 15 May 2014 05:18:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:15 UTC +00:00]] [shard 4408 master]
28420
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4408 master]
28421
+  (0.1ms) SAVEPOINT active_record_1 [shard 4407 master]
28422
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:18:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:15 UTC +00:00]] [shard 4407 master]
28423
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4407 master]
28424
+ User Load (0.2ms) SELECT "users".* FROM "users" [shard 4408 master]
28425
+ User Load (0.3ms) SELECT "users".* FROM "users"  [shard 4407 master]
28426
+  (0.1ms) ROLLBACK [shard 4409 master]
28427
+  (0.1ms) ROLLBACK [shard 4407 master]
28428
+  (0.0ms) BEGIN [shard 4407 master]
28429
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28430
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28431
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28432
+  (0.1ms) BEGIN [shard 4409 master]
28433
+  (0.1ms) ROLLBACK [shard 4409 master]
28434
+  (0.1ms) ROLLBACK [shard 4407 master]
28435
+  (0.1ms) BEGIN [shard 4407 master]
28436
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28437
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28438
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28439
+  (0.1ms) BEGIN [shard 4409 master]
28440
+  (0.1ms) SAVEPOINT active_record_1 [shard 4407 master]
28441
+ 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", Thu, 15 May 2014 05:18:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:15 UTC +00:00]] [shard 4407 master]
28442
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4407 master]
28443
+  (0.1ms) ROLLBACK [shard 4409 master]
28444
+  (0.1ms) ROLLBACK [shard 4407 master]
28445
+  (0.1ms) BEGIN [shard 4407 master]
28446
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28447
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28448
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28449
+  (0.1ms) BEGIN [shard 4409 master]
28450
+  (0.1ms) SAVEPOINT active_record_1 [shard 4407 master]
28451
+ 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", Thu, 15 May 2014 05:18:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:15 UTC +00:00]] [shard 4407 master]
28452
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4407 master]
28453
+  (0.1ms) ROLLBACK [shard 4409 master]
28454
+  (0.1ms) ROLLBACK [shard 4407 master]
28455
+  (0.1ms) BEGIN [shard 4407 master]
28456
+ 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", Thu, 15 May 2014 05:18:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:15 UTC +00:00]] [shard 4407 master]
28457
+  (0.3ms) COMMIT [shard 4407 master]
28458
+ SQL (0.4ms) DELETE FROM "users" [shard 4407 master]
28459
+  (0.1ms) BEGIN [shard 4407 master]
28460
+ 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", Thu, 15 May 2014 05:18:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:15 UTC +00:00]] [shard 4407 master]
28461
+  (0.3ms) COMMIT [shard 4407 master]
28462
+ SQL (0.4ms) DELETE FROM "users" [shard 4407 master]
28463
+  (0.1ms) BEGIN [shard 4407 master]
28464
+ 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", Thu, 15 May 2014 05:18:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:15 UTC +00:00]] [shard 4407 master]
28465
+  (0.3ms) COMMIT [shard 4407 master]
28466
+  (0.1ms) BEGIN [shard 4407 master]
28467
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:18:15 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:15 UTC +00:00]] [shard 4407 master]
28468
+  (0.5ms) COMMIT [shard 4407 master]
28469
+ SQL (0.6ms) DELETE FROM "users" [shard 4407 master]
28470
+  (0.1ms) BEGIN [shard 4407 master]
28471
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28472
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28473
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28474
+  (0.1ms) BEGIN [shard 4409 master]
28475
+  (0.1ms) ROLLBACK [shard 4409 master]
28476
+  (0.1ms) ROLLBACK [shard 4407 master]
28477
+  (0.1ms) BEGIN [shard 4407 master]
28478
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28479
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28480
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28481
+  (0.1ms) BEGIN [shard 4409 master]
28482
+  (0.1ms) ROLLBACK [shard 4409 master]
28483
+  (0.1ms) ROLLBACK [shard 4407 master]
28484
+  (0.1ms) BEGIN [shard 4407 master]
28485
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28486
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28487
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28488
+  (0.1ms) BEGIN [shard 4409 master]
28489
+  (0.1ms) ROLLBACK [shard 4409 master]
28490
+  (0.1ms) ROLLBACK [shard 4407 master]
28491
+  (0.1ms) BEGIN [shard 4407 master]
28492
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28493
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28494
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28495
+  (0.1ms) BEGIN [shard 4409 master]
28496
+  (0.1ms) ROLLBACK [shard 4409 master]
28497
+  (0.1ms) ROLLBACK [shard 4407 master]
28498
+  (0.1ms) BEGIN [shard 4407 master]
28499
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28500
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28501
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28502
+  (0.1ms) BEGIN [shard 4409 master]
28503
+  (0.1ms) ROLLBACK [shard 4409 master]
28504
+  (0.1ms) ROLLBACK [shard 4407 master]
28505
+  (0.0ms) BEGIN [shard 4407 master]
28506
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28507
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28508
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28509
+  (0.1ms) BEGIN [shard 4409 master]
28510
+ User Load (0.3ms) SELECT "users".* FROM "users" [shard 4407 master]
28511
+  (0.1ms) ROLLBACK [shard 4409 master]
28512
+  (0.1ms) ROLLBACK [shard 4407 master]
28513
+  (0.0ms) BEGIN [shard 4407 master]
28514
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28515
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28516
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28517
+  (0.1ms) BEGIN [shard 4409 master]
28518
+ User Load (0.1ms) SELECT "users".* FROM "users" [shard 4407 master]
28519
+  (0.1ms) ROLLBACK [shard 4409 master]
28520
+  (0.1ms) ROLLBACK [shard 4407 master]
28521
+  (0.0ms) BEGIN [shard 4407 master]
28522
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28523
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28524
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28525
+  (0.1ms) BEGIN [shard 4409 master]
28526
+ User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 4407 master]
28527
+  (0.1ms) ROLLBACK [shard 4409 master]
28528
+  (0.1ms) ROLLBACK [shard 4407 master]
28529
+  (0.1ms) BEGIN [shard 4407 master]
28530
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28531
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28532
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28533
+  (0.1ms) BEGIN [shard 4409 master]
28534
+  (0.1ms) SAVEPOINT active_record_1 [shard 4407 master]
28535
+ 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", Thu, 15 May 2014 05:18:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:15 UTC +00:00]] [shard 4407 master]
28536
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4407 master]
28537
+  (0.1ms) ROLLBACK [shard 4409 master]
28538
+  (0.1ms) ROLLBACK [shard 4407 master]
28539
+  (0.0ms) BEGIN [shard 4407 master]
28540
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28541
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28542
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28543
+  (0.1ms) BEGIN [shard 4409 master]
28544
+  (0.1ms) SAVEPOINT active_record_1 [shard 4407 master]
28545
+ 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", Thu, 15 May 2014 05:18:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:15 UTC +00:00]] [shard 4407 master]
28546
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4407 master]
28547
+  (0.1ms) ROLLBACK [shard 4409 master]
28548
+  (0.1ms) ROLLBACK [shard 4407 master]
28549
+  (0.1ms) BEGIN [shard 4407 master]
28550
+ 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", Thu, 15 May 2014 05:18:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:15 UTC +00:00]] [shard 4407 master]
28551
+  (0.3ms) COMMIT [shard 4407 master]
28552
+ SQL (0.4ms) DELETE FROM "users" [shard 4407 master]
28553
+  (0.1ms) BEGIN [shard 4407 master]
28554
+ 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", Thu, 15 May 2014 05:18:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:18:15 UTC +00:00]] [shard 4407 master]
28555
+  (0.3ms) COMMIT [shard 4407 master]
28556
+ SQL (0.4ms) DELETE FROM "users" [shard 4407 master]
28557
+  (0.1ms) BEGIN [shard 4407 master]
28558
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28559
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28560
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28561
+  (0.1ms) BEGIN [shard 4409 master]
28562
+  (0.1ms) ROLLBACK [shard 4409 master]
28563
+  (0.1ms) ROLLBACK [shard 4407 master]
28564
+  (0.0ms) BEGIN [shard 4407 master]
28565
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28566
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28567
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28568
+  (0.1ms) BEGIN [shard 4409 master]
28569
+  (0.1ms) ROLLBACK [shard 4409 master]
28570
+  (0.1ms) ROLLBACK [shard 4407 master]
28571
+  (0.0ms) BEGIN [shard 4407 master]
28572
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28573
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28574
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28575
+  (0.1ms) BEGIN [shard 4409 master]
28576
+  (0.1ms) ROLLBACK [shard 4409 master]
28577
+  (0.1ms) ROLLBACK [shard 4407 master]
28578
+  (0.1ms) BEGIN [shard 4407 master]
28579
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28580
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28581
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28582
+  (0.1ms) BEGIN [shard 4409 master]
28583
+  (0.1ms) ROLLBACK [shard 4409 master]
28584
+  (0.1ms) ROLLBACK [shard 4407 master]
28585
+  (0.1ms) BEGIN [shard 4407 master]
28586
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28587
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28588
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28589
+  (0.1ms) BEGIN [shard 4409 master]
28590
+  (0.1ms) ROLLBACK [shard 4409 master]
28591
+  (0.1ms) ROLLBACK [shard 4407 master]
28592
+  (0.0ms) BEGIN [shard 4407 master]
28593
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28594
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28595
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28596
+  (0.1ms) BEGIN [shard 4409 master]
28597
+  (0.1ms) ROLLBACK [shard 4409 master]
28598
+  (0.1ms) ROLLBACK [shard 4407 master]
28599
+  (0.0ms) BEGIN [shard 4407 master]
28600
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28601
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28602
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28603
+  (0.1ms) BEGIN [shard 4409 master]
28604
+  (0.1ms) ROLLBACK [shard 4409 master]
28605
+  (0.1ms) ROLLBACK [shard 4407 master]
28606
+  (0.1ms) BEGIN [shard 4407 master]
28607
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28608
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28609
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28610
+  (0.1ms) BEGIN [shard 4409 master]
28611
+  (0.1ms) ROLLBACK [shard 4409 master]
28612
+  (0.1ms) ROLLBACK [shard 4407 master]
28613
+  (0.1ms) BEGIN [shard 4407 master]
28614
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28615
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28616
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28617
+  (0.1ms) BEGIN [shard 4409 master]
28618
+  (0.1ms) ROLLBACK [shard 4409 master]
28619
+  (0.1ms) ROLLBACK [shard 4407 master]
28620
+  (0.1ms) BEGIN [shard 4407 master]
28621
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28622
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28623
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28624
+  (0.1ms) BEGIN [shard 4409 master]
28625
+  (0.1ms) ROLLBACK [shard 4409 master]
28626
+  (0.1ms) ROLLBACK [shard 4407 master]
28627
+  (0.1ms) BEGIN [shard 4407 master]
28628
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28629
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4408]] [shard 4407 master]
28630
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4409]] [shard 4407 master]
28631
+  (0.1ms) BEGIN [shard 4409 master]
28632
+  (0.1ms) ROLLBACK [shard 4409 master]
28633
+  (0.1ms) ROLLBACK [shard 4407 master]
28634
+  (0.0ms) BEGIN [shard 4407 master]
28635
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4407]] [shard 4407 master]
28636
+  (0.3ms) COMMIT [shard 4407 master]
28637
+  (0.1ms) BEGIN [shard 4407 master]
28638
+ SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4408]] [shard 4407 master]
28639
+  (0.3ms) COMMIT [shard 4407 master]
28640
+  (0.1ms) BEGIN [shard 4407 master]
28641
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4409]] [shard 4407 master]
28642
+  (0.3ms) COMMIT [shard 4407 master]
28643
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4407 master]
28644
+  (4.7ms) DROP SCHEMA switchman_test_shard_4408 CASCADE [shard 4408 deploy]
28645
+  (0.1ms) BEGIN
28646
+  (0.1ms) COMMIT
28647
+  (4.5ms) DROP SCHEMA switchman_test_shard_4409 CASCADE [shard 4409 deploy]
28648
+  (0.2ms) BEGIN
28649
+  (0.1ms) COMMIT
28650
+ Connecting to database specified by database.yml
28651
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
28652
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
28653
+ SQL (0.7ms) DELETE FROM "switchman_shards"
28654
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
28655
+  (0.1ms) BEGIN
28656
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
28657
+ 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]]
28658
+  (6.5ms) COMMIT
28659
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
28660
+ 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
28661
+  (0.1ms) BEGIN
28662
+ 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"]]
28663
+  (0.3ms) CREATE SCHEMA switchman_test_shard_4411 [shard 4411 deploy]
28664
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4411 deploy]
28665
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4411 deploy]
28666
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4411 deploy]
28667
+ Migrating to CreateUsers (20130403132607)
28668
+  (3.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 4411 deploy]
28669
+  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4411 deploy]
28670
+ Migrating to CreateAppendages (20130411202442)
28671
+  (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 4411 deploy]
28672
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4411 deploy]
28673
+ Migrating to CreateMirrorUsers (20130411202551)
28674
+  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4411 deploy]
28675
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4411 deploy]
28676
+ Migrating to CreateDigits (20131022202028)
28677
+  (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 4411 deploy]
28678
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4411 deploy]
28679
+ Migrating to CreateFeatures (20131206172923)
28680
+  (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 4411 deploy]
28681
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4411 deploy]
28682
+ Migrating to AddParentIdToUsers (20140123154135)
28683
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4411 deploy]
28684
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4411 deploy]
28685
+ Migrating to CreateRoots (20140219183820)
28686
+  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4411 deploy]
28687
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4411 deploy]
28688
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4411' WHERE "switchman_shards"."id" = 4411 [shard 4410 master]
28689
+  (0.7ms) COMMIT [shard 4410 master]
28690
+ 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 4410 master]
28691
+  (0.1ms) BEGIN [shard 4410 master]
28692
+ 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 4410 master]
28693
+  (0.3ms) COMMIT [shard 4410 master]
28694
+  (0.7ms) CREATE SCHEMA switchman_test_shard_4412 [shard 4412 deploy]
28695
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4412 deploy]
28696
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4412 deploy]
28697
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4412 deploy]
28698
+ Migrating to CreateUsers (20130403132607)
28699
+  (0.1ms) BEGIN [shard 4412 deploy]
28700
+  (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 4412 deploy]
28701
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4412 deploy]
28702
+  (0.3ms) COMMIT [shard 4412 deploy]
28703
+ Migrating to CreateAppendages (20130411202442)
28704
+  (0.1ms) BEGIN [shard 4412 deploy]
28705
+  (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 4412 deploy]
28706
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4412 deploy]
28707
+  (0.3ms) COMMIT [shard 4412 deploy]
28708
+ Migrating to CreateMirrorUsers (20130411202551)
28709
+  (0.2ms) BEGIN [shard 4412 deploy]
28710
+  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4412 deploy]
28711
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4412 deploy]
28712
+  (0.3ms) COMMIT [shard 4412 deploy]
28713
+ Migrating to CreateDigits (20131022202028)
28714
+  (0.1ms) BEGIN [shard 4412 deploy]
28715
+  (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 4412 deploy]
28716
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4412 deploy]
28717
+  (0.3ms) COMMIT [shard 4412 deploy]
28718
+ Migrating to CreateFeatures (20131206172923)
28719
+  (0.1ms) BEGIN [shard 4412 deploy]
28720
+  (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 4412 deploy]
28721
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4412 deploy]
28722
+  (0.3ms) COMMIT [shard 4412 deploy]
28723
+ Migrating to AddParentIdToUsers (20140123154135)
28724
+  (0.1ms) BEGIN [shard 4412 deploy]
28725
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4412 deploy]
28726
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4412 deploy]
28727
+  (0.2ms) COMMIT [shard 4412 deploy]
28728
+ Migrating to CreateRoots (20140219183820)
28729
+  (0.1ms) BEGIN [shard 4412 deploy]
28730
+  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4412 deploy]
28731
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4412 deploy]
28732
+  (0.3ms) COMMIT [shard 4412 deploy]
28733
+  (0.1ms) BEGIN [shard 4410 master]
28734
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4412' WHERE "switchman_shards"."id" = 4412 [shard 4410 master]
28735
+  (0.3ms) COMMIT [shard 4410 master]
28736
+  (0.1ms) BEGIN [shard 4410 master]
28737
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4410 master]
28738
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4411]] [shard 4410 master]
28739
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4412]] [shard 4410 master]
28740
+  (0.1ms) BEGIN [shard 4412 master]
28741
+  (0.1ms) SAVEPOINT active_record_1 [shard 4411 master]
28742
+ SQL (1.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:19:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:19:01 UTC +00:00]] [shard 4411 master]
28743
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4411 master]
28744
+  (0.1ms) SAVEPOINT active_record_1 [shard 4411 master]
28745
+ 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", Thu, 15 May 2014 05:19:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:19:01 UTC +00:00]] [shard 4411 master]
28746
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4411 master]
28747
+  (0.0ms) SAVEPOINT active_record_1 [shard 4410 master]
28748
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:19:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:19:01 UTC +00:00]] [shard 4410 master]
28749
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4410 master]
28750
+ User Load (0.3ms) SELECT "users".* FROM "users" [shard 4411 master]
28751
+ User Load (0.4ms) SELECT "users".* FROM "users"  [shard 4410 master]
28752
+  (0.3ms) ROLLBACK [shard 4412 master]
28753
+  (0.3ms) ROLLBACK [shard 4410 master]
28754
+  (0.1ms) BEGIN [shard 4410 master]
28755
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4410 master]
28756
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4411]] [shard 4410 master]
28757
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4412]] [shard 4410 master]
28758
+  (0.1ms) BEGIN [shard 4412 master]
28759
+ Connecting to database specified by database.yml
28760
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
28761
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
28762
+  (0.2ms) SELECT * FROM unnest(current_schemas(false))
28763
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL LIMIT 1
28764
+  (0.4ms) SELECT * FROM unnest(current_schemas(false)) [shard master]
28765
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'testm' AND "switchman_shards"."name" IS NULL LIMIT 1
28766
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'tests' AND "switchman_shards"."name" IS NULL LIMIT 1
28767
+ SQL (7.2ms) DELETE FROM "switchman_shards" [shard 4410 master]
28768
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4410 master]
28769
+  (0.1ms) BEGIN [shard 4410 master]
28770
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4410 master]
28771
+ 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]] [shard 4410 master]
28772
+  (0.4ms) COMMIT [shard 4410 master]
28773
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4410 master]
28774
+ 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 [shard 4413 master]
28775
+  (0.1ms) BEGIN [shard 4413 master]
28776
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 4413 master]
28777
+  (0.3ms) CREATE SCHEMA switchman_test_shard_4414 [shard 4414 deploy]
28778
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 4414 deploy]
28779
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4414 deploy]
28780
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 4414 deploy]
28781
+ Migrating to CreateUsers (20130403132607)
28782
+  (3.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4414 deploy]
28783
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4414 deploy]
28784
+ Migrating to CreateAppendages (20130411202442)
28785
+  (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 4414 deploy]
28786
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4414 deploy]
28787
+ Migrating to CreateMirrorUsers (20130411202551)
28788
+  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4414 deploy]
28789
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4414 deploy]
28790
+ Migrating to CreateDigits (20131022202028)
28791
+  (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 4414 deploy]
28792
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4414 deploy]
28793
+ Migrating to CreateFeatures (20131206172923)
28794
+  (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 4414 deploy]
28795
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4414 deploy]
28796
+ Migrating to AddParentIdToUsers (20140123154135)
28797
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4414 deploy]
28798
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4414 deploy]
28799
+ Migrating to CreateRoots (20140219183820)
28800
+  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4414 deploy]
28801
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4414 deploy]
28802
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4414' WHERE "switchman_shards"."id" = 4414 [shard 4413 master]
28803
+  (0.7ms) COMMIT [shard 4413 master]
28804
+ 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 4413 master]
28805
+  (0.1ms) BEGIN [shard 4413 master]
28806
+ 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 4413 master]
28807
+  (0.3ms) COMMIT [shard 4413 master]
28808
+  (0.6ms) CREATE SCHEMA switchman_test_shard_4415 [shard 4415 deploy]
28809
+  (3.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 4415 deploy]
28810
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4415 deploy]
28811
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 4415 deploy]
28812
+ Migrating to CreateUsers (20130403132607)
28813
+  (0.1ms) BEGIN [shard 4415 deploy]
28814
+  (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 4415 deploy]
28815
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4415 deploy]
28816
+  (0.3ms) COMMIT [shard 4415 deploy]
28817
+ Migrating to CreateAppendages (20130411202442)
28818
+  (0.1ms) BEGIN [shard 4415 deploy]
28819
+  (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 4415 deploy]
28820
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4415 deploy]
28821
+  (0.3ms) COMMIT [shard 4415 deploy]
28822
+ Migrating to CreateMirrorUsers (20130411202551)
28823
+  (0.1ms) BEGIN [shard 4415 deploy]
28824
+  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4415 deploy]
28825
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4415 deploy]
28826
+  (0.3ms) COMMIT [shard 4415 deploy]
28827
+ Migrating to CreateDigits (20131022202028)
28828
+  (0.1ms) BEGIN [shard 4415 deploy]
28829
+  (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 4415 deploy]
28830
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4415 deploy]
28831
+  (0.3ms) COMMIT [shard 4415 deploy]
28832
+ Migrating to CreateFeatures (20131206172923)
28833
+  (0.1ms) BEGIN [shard 4415 deploy]
28834
+  (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 4415 deploy]
28835
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4415 deploy]
28836
+  (0.3ms) COMMIT [shard 4415 deploy]
28837
+ Migrating to AddParentIdToUsers (20140123154135)
28838
+  (0.1ms) BEGIN [shard 4415 deploy]
28839
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4415 deploy]
28840
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4415 deploy]
28841
+  (0.3ms) COMMIT [shard 4415 deploy]
28842
+ Migrating to CreateRoots (20140219183820)
28843
+  (0.1ms) BEGIN [shard 4415 deploy]
28844
+  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4415 deploy]
28845
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4415 deploy]
28846
+  (0.3ms) COMMIT [shard 4415 deploy]
28847
+  (0.1ms) BEGIN [shard 4413 master]
28848
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4415' WHERE "switchman_shards"."id" = 4415 [shard 4413 master]
28849
+  (0.3ms) COMMIT [shard 4413 master]
28850
+  (0.1ms) BEGIN [shard 4413 master]
28851
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4413 master]
28852
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4414]] [shard 4413 master]
28853
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4415]] [shard 4413 master]
28854
+  (0.1ms) BEGIN [shard 4415 master]
28855
+  (0.1ms) SAVEPOINT active_record_1 [shard 4414 master]
28856
+ SQL (1.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:19:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:19:25 UTC +00:00]] [shard 4414 master]
28857
+  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 4414 master]
28858
+  (0.2ms) SAVEPOINT active_record_1 [shard 4414 master]
28859
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:19:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:19:25 UTC +00:00]] [shard 4414 master]
28860
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4414 master]
28861
+  (0.0ms) SAVEPOINT active_record_1 [shard 4413 master]
28862
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:19:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:19:25 UTC +00:00]] [shard 4413 master]
28863
+  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 4413 master]
28864
+ User Load (0.5ms) SELECT "users".* FROM "users"  [shard 4414 master]
28865
+ User Load (0.4ms) SELECT "users".* FROM "users" [shard 4413 master]
28866
+  (0.3ms) ROLLBACK [shard 4415 master]
28867
+  (0.3ms) ROLLBACK [shard 4413 master]
28868
+  (0.1ms) BEGIN [shard 4413 master]
28869
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4413 master]
28870
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4414]] [shard 4413 master]
28871
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4415]] [shard 4413 master]
28872
+  (0.1ms) BEGIN [shard 4415 master]
28873
+  (0.2ms) ROLLBACK [shard 4415 master]
28874
+  (0.2ms) ROLLBACK [shard 4413 master]
28875
+  (0.1ms) BEGIN [shard 4413 master]
28876
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4413 master]
28877
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4414]] [shard 4413 master]
28878
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4415]] [shard 4413 master]
28879
+  (0.1ms) BEGIN [shard 4415 master]
28880
+  (0.2ms) ROLLBACK [shard 4415 master]
28881
+  (0.2ms) ROLLBACK [shard 4413 master]
28882
+  (0.1ms) BEGIN [shard 4413 master]
28883
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4413 master]
28884
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4414]] [shard 4413 master]
28885
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4415]] [shard 4413 master]
28886
+  (0.1ms) BEGIN [shard 4415 master]
28887
+ Connecting to database specified by database.yml
28888
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
28889
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
28890
+  (0.2ms) SELECT * FROM unnest(current_schemas(false))
28891
+ Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL LIMIT 1
28892
+  (0.5ms) SELECT * FROM unnest(current_schemas(false)) [shard master]
28893
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'testm' AND "switchman_shards"."name" IS NULL LIMIT 1
28894
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'tests' AND "switchman_shards"."name" IS NULL LIMIT 1
28895
+ SQL (7.3ms) DELETE FROM "switchman_shards" [shard 4413 master]
28896
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4413 master]
28897
+  (0.1ms) BEGIN [shard 4413 master]
28898
+ Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4413 master]
28899
+ 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]] [shard 4413 master]
28900
+  (0.4ms) COMMIT [shard 4413 master]
28901
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4413 master]
28902
+ Switchman::Shard Load (1.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 4416 master]
28903
+  (0.1ms) BEGIN [shard 4416 master]
28904
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 4416 master]
28905
+  (0.3ms) CREATE SCHEMA switchman_test_shard_4417 [shard 4417 deploy]
28906
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 4417 deploy]
28907
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4417 deploy]
28908
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 4417 deploy]
28909
+ Migrating to CreateUsers (20130403132607)
28910
+  (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 4417 deploy]
28911
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4417 deploy]
28912
+ Migrating to CreateAppendages (20130411202442)
28913
+  (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 4417 deploy]
28914
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4417 deploy]
28915
+ Migrating to CreateMirrorUsers (20130411202551)
28916
+  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4417 deploy]
28917
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4417 deploy]
28918
+ Migrating to CreateDigits (20131022202028)
28919
+  (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 4417 deploy]
28920
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4417 deploy]
28921
+ Migrating to CreateFeatures (20131206172923)
28922
+  (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 4417 deploy]
28923
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4417 deploy]
28924
+ Migrating to AddParentIdToUsers (20140123154135)
28925
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4417 deploy]
28926
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4417 deploy]
28927
+ Migrating to CreateRoots (20140219183820)
28928
+  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4417 deploy]
28929
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4417 deploy]
28930
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4417' WHERE "switchman_shards"."id" = 4417 [shard 4416 master]
28931
+  (0.9ms) COMMIT [shard 4416 master]
28932
+ 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 4416 master]
28933
+  (0.1ms) BEGIN [shard 4416 master]
28934
+ 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 4416 master]
28935
+  (0.3ms) COMMIT [shard 4416 master]
28936
+  (0.6ms) CREATE SCHEMA switchman_test_shard_4418 [shard 4418 deploy]
28937
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 4418 deploy]
28938
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4418 deploy]
28939
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 4418 deploy]
28940
+ Migrating to CreateUsers (20130403132607)
28941
+  (0.1ms) BEGIN [shard 4418 deploy]
28942
+  (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 4418 deploy]
28943
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4418 deploy]
28944
+  (0.3ms) COMMIT [shard 4418 deploy]
28945
+ Migrating to CreateAppendages (20130411202442)
28946
+  (0.1ms) BEGIN [shard 4418 deploy]
28947
+  (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 4418 deploy]
28948
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4418 deploy]
28949
+  (0.3ms) COMMIT [shard 4418 deploy]
28950
+ Migrating to CreateMirrorUsers (20130411202551)
28951
+  (0.1ms) BEGIN [shard 4418 deploy]
28952
+  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4418 deploy]
28953
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4418 deploy]
28954
+  (0.4ms) COMMIT [shard 4418 deploy]
28955
+ Migrating to CreateDigits (20131022202028)
28956
+  (0.1ms) BEGIN [shard 4418 deploy]
28957
+  (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 4418 deploy]
28958
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4418 deploy]
28959
+  (0.3ms) COMMIT [shard 4418 deploy]
28960
+ Migrating to CreateFeatures (20131206172923)
28961
+  (0.1ms) BEGIN [shard 4418 deploy]
28962
+  (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 4418 deploy]
28963
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4418 deploy]
28964
+  (0.3ms) COMMIT [shard 4418 deploy]
28965
+ Migrating to AddParentIdToUsers (20140123154135)
28966
+  (0.1ms) BEGIN [shard 4418 deploy]
28967
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4418 deploy]
28968
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4418 deploy]
28969
+  (0.3ms) COMMIT [shard 4418 deploy]
28970
+ Migrating to CreateRoots (20140219183820)
28971
+  (0.1ms) BEGIN [shard 4418 deploy]
28972
+  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 4418 deploy]
28973
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4418 deploy]
28974
+  (0.3ms) COMMIT [shard 4418 deploy]
28975
+  (0.1ms) BEGIN [shard 4416 master]
28976
+  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4418' WHERE "switchman_shards"."id" = 4418 [shard 4416 master]
28977
+  (0.2ms) COMMIT [shard 4416 master]
28978
+  (0.1ms) BEGIN [shard 4416 master]
28979
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4416 master]
28980
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4417]] [shard 4416 master]
28981
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4418]] [shard 4416 master]
28982
+  (0.1ms) BEGIN [shard 4418 master]
28983
+  (0.1ms) SAVEPOINT active_record_1 [shard 4417 master]
28984
+ SQL (1.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:19:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:19:34 UTC +00:00]] [shard 4417 master]
28985
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4417 master]
28986
+  (0.1ms) SAVEPOINT active_record_1 [shard 4417 master]
28987
+ 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", Thu, 15 May 2014 05:19:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:19:34 UTC +00:00]] [shard 4417 master]
28988
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4417 master]
28989
+  (0.1ms) SAVEPOINT active_record_1 [shard 4416 master]
28990
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 15 May 2014 05:19:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 15 May 2014 05:19:35 UTC +00:00]] [shard 4416 master]
28991
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4416 master]
28992
+ User Load (0.3ms) SELECT "users".* FROM "users"  [shard 4417 master]
28993
+ User Load (0.5ms) SELECT "users".* FROM "users" [shard 4416 master]
28994
+  (0.2ms) ROLLBACK [shard 4418 master]
28995
+  (0.2ms) ROLLBACK [shard 4416 master]
28996
+  (0.1ms) BEGIN [shard 4416 master]
28997
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4416 master]
28998
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4417]] [shard 4416 master]
28999
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4418]] [shard 4416 master]
29000
+  (0.1ms) BEGIN [shard 4418 master]
29001
+  (0.1ms) ROLLBACK [shard 4418 master]
29002
+  (0.1ms) ROLLBACK [shard 4416 master]
29003
+  (0.1ms) BEGIN [shard 4416 master]
29004
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4416 master]
29005
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4417]] [shard 4416 master]
29006
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4418]] [shard 4416 master]
29007
+  (0.1ms) BEGIN [shard 4418 master]
29008
+  (0.1ms) ROLLBACK [shard 4418 master]
29009
+  (0.1ms) ROLLBACK [shard 4416 master]
29010
+  (0.0ms) BEGIN [shard 4416 master]
29011
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4416 master]
29012
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4417]] [shard 4416 master]
29013
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4418]] [shard 4416 master]
29014
+  (0.1ms) BEGIN [shard 4418 master]
29015
+  (0.2ms) ROLLBACK [shard 4418 master]
29016
+  (0.2ms) ROLLBACK [shard 4416 master]
29017
+  (0.1ms) BEGIN [shard 4416 master]
29018
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 4416 master]
29019
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4417]] [shard 4416 master]