switchman 1.2.19 → 1.2.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. data/app/models/switchman/shard.rb +2 -2
  2. data/lib/switchman/active_record/finder_methods.rb +4 -3
  3. data/lib/switchman/version.rb +1 -1
  4. data/spec/dummy/config/database.yml +23 -14
  5. data/spec/dummy/config/database.yml.travis +4 -0
  6. data/spec/dummy/db/schema.rb +29 -32
  7. data/spec/dummy/db/{shard_1067.sqlite3 → shard_13.sqlite3} +0 -0
  8. data/spec/dummy/db/{shard_120.sqlite3 → shard_25.sqlite3} +0 -0
  9. data/spec/dummy/log/development.log +54 -93
  10. data/spec/dummy/log/production.log +8 -0
  11. data/spec/dummy/log/test.log +7471 -147220
  12. data/spec/dummy/tmp/cache/2E3/840/shard%2F3 +0 -0
  13. data/spec/dummy/tmp/cache/2E4/850/shard%2F4 +0 -0
  14. data/spec/dummy/tmp/cache/312/950/shard%2F20 +0 -0
  15. data/spec/dummy/tmp/cache/{316/980/shard%2F15 → 317/9B0/shard%2F34} +1 -1
  16. data/spec/dummy/tmp/cache/{313/970/shard%2F30 → 319/9B0/shard%2F18} +1 -1
  17. data/spec/dummy/tmp/cache/{346/DF0/shard%2F321 → 3A4/EB0/shard%2F10021} +1 -1
  18. data/spec/dummy/tmp/cache/3A5/EA0/shard%2F10004 +1 -1
  19. data/spec/lib/active_record/association_spec.rb +22 -0
  20. metadata +65 -333
  21. checksums.yaml +0 -7
  22. data/spec/dummy/db/development.sqlite3 +0 -0
  23. data/spec/dummy/db/shard_1020.sqlite3 +0 -0
  24. data/spec/dummy/db/shard_1051.sqlite3 +0 -0
  25. data/spec/dummy/db/shard_1088.sqlite3 +0 -0
  26. data/spec/dummy/db/shard_1119.sqlite3 +0 -0
  27. data/spec/dummy/db/shard_1126.sqlite3 +0 -0
  28. data/spec/dummy/db/shard_1156.sqlite3 +0 -0
  29. data/spec/dummy/db/shard_156.sqlite3 +0 -0
  30. data/spec/dummy/db/shard_193.sqlite3 +0 -0
  31. data/spec/dummy/db/shard_23.sqlite3 +0 -0
  32. data/spec/dummy/db/shard_234.sqlite3 +0 -0
  33. data/spec/dummy/db/shard_257.sqlite3 +0 -0
  34. data/spec/dummy/db/shard_277.sqlite3 +0 -0
  35. data/spec/dummy/db/shard_311.sqlite3 +0 -0
  36. data/spec/dummy/db/shard_324.sqlite3 +0 -0
  37. data/spec/dummy/db/shard_342.sqlite3 +0 -0
  38. data/spec/dummy/db/shard_375.sqlite3 +0 -0
  39. data/spec/dummy/db/shard_389.sqlite3 +0 -0
  40. data/spec/dummy/db/shard_428.sqlite3 +0 -0
  41. data/spec/dummy/db/shard_452.sqlite3 +0 -0
  42. data/spec/dummy/db/shard_462.sqlite3 +0 -0
  43. data/spec/dummy/db/shard_483.sqlite3 +0 -0
  44. data/spec/dummy/db/shard_508.sqlite3 +0 -0
  45. data/spec/dummy/db/shard_531.sqlite3 +0 -0
  46. data/spec/dummy/db/shard_554.sqlite3 +0 -0
  47. data/spec/dummy/db/shard_577.sqlite3 +0 -0
  48. data/spec/dummy/db/shard_58.sqlite3 +0 -0
  49. data/spec/dummy/db/shard_600.sqlite3 +0 -0
  50. data/spec/dummy/db/shard_623.sqlite3 +0 -0
  51. data/spec/dummy/db/shard_646.sqlite3 +0 -0
  52. data/spec/dummy/db/shard_668.sqlite3 +0 -0
  53. data/spec/dummy/db/shard_680.sqlite3 +0 -0
  54. data/spec/dummy/db/shard_708.sqlite3 +0 -0
  55. data/spec/dummy/db/shard_735.sqlite3 +0 -0
  56. data/spec/dummy/db/shard_753.sqlite3 +0 -0
  57. data/spec/dummy/db/shard_76.sqlite3 +0 -0
  58. data/spec/dummy/db/shard_802.sqlite3 +0 -0
  59. data/spec/dummy/db/shard_895.sqlite3 +0 -0
  60. data/spec/dummy/db/shard_930.sqlite3 +0 -0
  61. data/spec/dummy/db/shard_953.sqlite3 +0 -0
  62. data/spec/dummy/db/shard_982.sqlite3 +0 -0
  63. data/spec/dummy/db/shard_988.sqlite3 +0 -0
  64. data/spec/dummy/db/test.sqlite3 +0 -0
  65. data/spec/dummy/tmp/cache/317/9D0/shard%2F52 +0 -1
  66. data/spec/dummy/tmp/cache/31C/A40/shard%2F75 +0 -1
  67. data/spec/dummy/tmp/cache/345/E00/shard%2F500 +0 -1
  68. data/spec/dummy/tmp/cache/349/DE0/shard%2F126 +0 -1
  69. data/spec/dummy/tmp/cache/349/E10/shard%2F153 +0 -0
  70. data/spec/dummy/tmp/cache/349/E20/shard%2F243 +0 -1
  71. data/spec/dummy/tmp/cache/34A/E20/shard%2F154 +0 -0
  72. data/spec/dummy/tmp/cache/34A/E40/shard%2F172 +0 -1
  73. data/spec/dummy/tmp/cache/34A/E70/shard%2F523 +0 -1
  74. data/spec/dummy/tmp/cache/34A/EB0/shard%2F721 +0 -1
  75. data/spec/dummy/tmp/cache/34A/EC0/shard%2F730 +0 -1
  76. data/spec/dummy/tmp/cache/34B/E40/shard%2F245 +0 -0
  77. data/spec/dummy/tmp/cache/34B/E60/shard%2F425 +0 -1
  78. data/spec/dummy/tmp/cache/34B/EC0/shard%2F722 +0 -1
  79. data/spec/dummy/tmp/cache/34C/E50/shard%2F246 +0 -0
  80. data/spec/dummy/tmp/cache/34C/E80/shard%2F273 +0 -1
  81. data/spec/dummy/tmp/cache/34C/E90/shard%2F363 +0 -0
  82. data/spec/dummy/tmp/cache/34C/E90/shard%2F444 +0 -1
  83. data/spec/dummy/tmp/cache/34C/EA0/shard%2F615 +0 -1
  84. data/spec/dummy/tmp/cache/34C/F00/shard%2F750 +0 -1
  85. data/spec/dummy/tmp/cache/34D/E80/shard%2F265 +0 -1
  86. data/spec/dummy/tmp/cache/34D/ED0/shard%2F391 +0 -1
  87. data/spec/dummy/tmp/cache/34D/EE0/shard%2F724 +0 -1
  88. data/spec/dummy/tmp/cache/34E/ED0/shard%2F383 +0 -1
  89. data/spec/dummy/tmp/cache/34E/EF0/shard%2F725 +0 -1
  90. data/spec/dummy/tmp/cache/34E/F00/shard%2F653 +0 -1
  91. data/spec/dummy/tmp/cache/34F/EE0/shard%2F546 +0 -1
  92. data/spec/dummy/tmp/cache/34F/F00/shard%2F807 +0 -1
  93. data/spec/dummy/tmp/cache/34F/F30/shard%2F672 +0 -1
  94. data/spec/dummy/tmp/cache/350/EA0/shard%2F178 +0 -1
  95. data/spec/dummy/tmp/cache/350/EB0/shard%2F349 +0 -1
  96. data/spec/dummy/tmp/cache/350/F00/shard%2F718 +0 -0
  97. data/spec/dummy/tmp/cache/350/F40/shard%2F592 +0 -1
  98. data/spec/dummy/tmp/cache/350/F40/shard%2F916 +0 -0
  99. data/spec/dummy/tmp/cache/351/F00/shard%2F386 +0 -0
  100. data/spec/dummy/tmp/cache/351/F10/shard%2F638 +0 -1
  101. data/spec/dummy/tmp/cache/351/F10/shard%2F719 +0 -0
  102. data/spec/dummy/tmp/cache/351/F50/shard%2F917 +0 -0
  103. data/spec/dummy/tmp/cache/351/F70/shard%2F935 +0 -1
  104. data/spec/dummy/tmp/cache/352/F10/shard%2F387 +0 -0
  105. data/spec/dummy/tmp/cache/352/F10/shard%2F468 +0 -1
  106. data/spec/dummy/tmp/cache/352/F30/shard%2F729 +0 -1
  107. data/spec/dummy/tmp/cache/353/F10/shard%2F298 +0 -1
  108. data/spec/dummy/tmp/cache/353/F50/shard%2F739 +0 -1
  109. data/spec/dummy/tmp/cache/354/F50/shard%2F569 +0 -1
  110. data/spec/dummy/tmp/cache/354/F80/shard%2F677 +0 -1
  111. data/spec/dummy/tmp/cache/354/F90/shard%2F767 +0 -1
  112. data/spec/dummy/tmp/cache/354/FD0/shard%2F965 +0 -1
  113. data/spec/dummy/tmp/cache/355/FD0/shard%2F957 +0 -1
  114. data/spec/dummy/tmp/cache/356/010/shard%2F985 +0 -0
  115. data/spec/dummy/tmp/cache/358/040/shard%2F996 +0 -1
  116. data/spec/dummy/tmp/cache/358/FE0/shard%2F699 +0 -1
  117. data/spec/dummy/tmp/cache/377/4D0/shard%2F1024 +0 -1
  118. data/spec/dummy/tmp/cache/378/530/shard%2F1151 +0 -1
  119. data/spec/dummy/tmp/cache/379/4D0/shard%2F1008 +0 -0
  120. data/spec/dummy/tmp/cache/379/500/shard%2F1116 +0 -1
  121. data/spec/dummy/tmp/cache/37A/4E0/shard%2F1009 +0 -0
  122. data/spec/dummy/tmp/cache/37A/510/shard%2F1036 +0 -1
  123. data/spec/dummy/tmp/cache/37C/560/shard%2F1065 +0 -1
  124. data/spec/dummy/tmp/cache/37E/570/shard%2F1139 +0 -1
  125. data/spec/dummy/tmp/cache/37F/5A0/shard%2F1077 +0 -1
  126. data/spec/dummy/tmp/cache/380/5B0/shard%2F1078 +0 -1
  127. data/spec/dummy/tmp/cache/381/5E0/shard%2F1097 +0 -1
  128. data/spec/dummy/tmp/cache/3A4/EE0/shard%2F11101 +0 -1
  129. data/spec/dummy/tmp/cache/3A6/F40/shard%2F10410 +0 -1
  130. data/spec/dummy/tmp/cache/3A7/F20/shard%2F11032 +0 -1
  131. data/spec/dummy/tmp/cache/3A7/F30/shard%2F10231 +0 -1
  132. data/spec/dummy/tmp/cache/3A8/F90/shard%2F10520 +0 -1
  133. data/spec/dummy/tmp/cache/3A9/F40/shard%2F10062 +0 -1
  134. data/spec/dummy/tmp/cache/3A9/F50/shard%2F11124 +0 -1
  135. data/spec/dummy/tmp/cache/3A9/F80/shard%2F10341 +0 -1
  136. data/spec/dummy/tmp/cache/3AA/F10/shard%2F10027 +0 -1
  137. data/spec/dummy/tmp/cache/3AA/F10/shard%2F10108 +0 -1
  138. data/spec/dummy/tmp/cache/3AA/FB0/shard%2F10441 +0 -1
  139. data/spec/dummy/tmp/cache/3AA/FC0/shard%2F10612 +0 -1
  140. data/spec/dummy/tmp/cache/3AB/010/shard%2F10730 +0 -1
  141. data/spec/dummy/tmp/cache/3AB/F30/shard%2F11009 +0 -1
  142. data/spec/dummy/tmp/cache/3AB/F70/shard%2F10154 +0 -1
  143. data/spec/dummy/tmp/cache/3AC/020/shard%2F10650 +0 -1
  144. data/spec/dummy/tmp/cache/3AC/F90/shard%2F11055 +0 -1
  145. data/spec/dummy/tmp/cache/3AC/FC0/shard%2F10272 +0 -1
  146. data/spec/dummy/tmp/cache/3AD/000/shard%2F10543 +0 -1
  147. data/spec/dummy/tmp/cache/3AD/F50/shard%2F10039 +0 -1
  148. data/spec/dummy/tmp/cache/3AD/F90/shard%2F10318 +0 -1
  149. data/spec/dummy/tmp/cache/3AD/FA0/shard%2F10246 +0 -1
  150. data/spec/dummy/tmp/cache/3AE/060/shard%2F10751 +0 -1
  151. data/spec/dummy/tmp/cache/3AE/090/shard%2F10940 +0 -1
  152. data/spec/dummy/tmp/cache/3AE/FF0/shard%2F10364 +0 -1
  153. data/spec/dummy/tmp/cache/3AF/030/shard%2F10635 +0 -1
  154. data/spec/dummy/tmp/cache/3B0/FE0/shard%2F10177 +0 -1
  155. data/spec/dummy/tmp/cache/3B0/FE0/shard%2F11149 +0 -1
  156. data/spec/dummy/tmp/cache/3B1/000/shard%2F11078 +0 -1
  157. data/spec/dummy/tmp/cache/3B1/030/shard%2F10295 +0 -1
  158. data/spec/dummy/tmp/cache/3B1/040/shard%2F10466 +0 -1
  159. data/spec/dummy/tmp/cache/3B1/090/shard%2F10673 +0 -1
  160. data/spec/dummy/tmp/cache/3B2/070/shard%2F10566 +0 -1
  161. data/spec/dummy/tmp/cache/3B2/0A0/shard%2F10917 +0 -1
  162. data/spec/dummy/tmp/cache/3B3/060/shard%2F10387 +0 -1
  163. data/spec/dummy/tmp/cache/3B3/100/shard%2F10963 +0 -1
  164. data/spec/dummy/tmp/cache/3B5/0B0/shard%2F10497 +0 -1
  165. data/spec/dummy/tmp/cache/3B6/100/shard%2F10696 +0 -1
  166. data/spec/dummy/tmp/cache/3B7/0E0/shard%2F10589 +0 -1
  167. data/spec/dummy/tmp/cache/3B8/170/shard%2F10986 +0 -1
  168. data/spec/dummy/tmp/cache/3BA/160/shard%2F10799 +0 -1
@@ -323,7 +323,7 @@ module Switchman
323
323
  else
324
324
  shard = partition_object.shard
325
325
  end
326
- when Fixnum, /^\d+$/, /^(\d+)~(\d+)$/
326
+ when Integer, /^\d+$/, /^(\d+)~(\d+)$/
327
327
  local_id, shard = Shard.local_id_for(partition_object)
328
328
  local_id ||= partition_object
329
329
  object = local_id if !partition_proc
@@ -350,7 +350,7 @@ module Switchman
350
350
  # doesn't make sense to have a double-global id
351
351
  return nil if local_id > IDS_PER_SHARD
352
352
  $1.to_i * IDS_PER_SHARD + local_id
353
- when Fixnum, /^\d+$/
353
+ when Integer, /^\d+$/
354
354
  any_id.to_i
355
355
  else
356
356
  nil
@@ -4,10 +4,11 @@ module Switchman
4
4
  # find_one uses binds, so we can't depend on QueryMethods
5
5
  # catching it
6
6
  def find_one(id)
7
- local_id, shard = Shard.local_id_for(id)
8
-
9
- return super(local_id) if shard_source_value != :implicit
7
+ if shard_source_value != :implicit
8
+ return super(Shard.relative_id_for(id, Shard.current(klass.shard_category), primary_shard))
9
+ end
10
10
 
11
+ local_id, shard = Shard.local_id_for(id)
11
12
  if shard
12
13
  begin
13
14
  old_shard_value = shard_value
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.2.19"
2
+ VERSION = "1.2.20"
3
3
  end
@@ -1,21 +1,30 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
1
+ common: &common
7
2
  adapter: postgresql
3
+ encoding: utf8
4
+ username: switchman
5
+ password: switchman
6
+ timeout: 5000
7
+
8
+ development:
9
+ <<: *common
8
10
  database: switchman_development
11
+ queue:
12
+ <<: *common
13
+ database: switchman_queue_development
9
14
 
10
- # Warning: The database defined as "test" will be erased and
11
- # re-generated from your development database when you run "rake".
12
- # Do not set this db to the same as development or production.
13
15
  test:
14
- adapter: postgresql
16
+ <<: *common
15
17
  database: switchman_test
16
18
 
17
- production:
19
+ test-in-memory:
18
20
  adapter: sqlite3
19
- database: db/production.sqlite3
20
- pool: 5
21
- timeout: 5000
21
+ encoding: utf8
22
+ database: ':memory:'
23
+ pool: 1
24
+
25
+ production:
26
+ <<: *common
27
+ database: switchman_production
28
+ queue:
29
+ <<: *common
30
+ database: switchman_queue_production
@@ -0,0 +1,4 @@
1
+ test:
2
+ adapter: postgresql
3
+ database: switchman_test
4
+ username: postgres
@@ -9,59 +9,56 @@
9
9
  # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
10
  # you'll amass, the slower it'll run and the greater likelihood for issues).
11
11
  #
12
- # It's strongly recommended that you check this file into your version control system.
12
+ # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20140219183820) do
14
+ ActiveRecord::Schema.define(:version => 20140219183820) do
15
15
 
16
- # These are extensions that must be enabled in order to support this database
17
- enable_extension "plpgsql"
18
-
19
- create_table "appendages", force: true do |t|
20
- t.integer "user_id", limit: 8
16
+ create_table "appendages", :force => true do |t|
17
+ t.integer "user_id", :limit => 8
21
18
  t.integer "value"
22
- t.datetime "created_at", null: false
23
- t.datetime "updated_at", null: false
19
+ t.datetime "created_at", :null => false
20
+ t.datetime "updated_at", :null => false
24
21
  end
25
22
 
26
- create_table "digits", force: true do |t|
27
- t.integer "appendage_id", limit: 8
23
+ create_table "digits", :force => true do |t|
24
+ t.integer "appendage_id", :limit => 8
28
25
  t.integer "value"
29
- t.datetime "created_at", null: false
30
- t.datetime "updated_at", null: false
26
+ t.datetime "created_at", :null => false
27
+ t.datetime "updated_at", :null => false
31
28
  end
32
29
 
33
- create_table "features", force: true do |t|
34
- t.integer "owner_id", limit: 8
30
+ create_table "features", :force => true do |t|
31
+ t.integer "owner_id", :limit => 8
35
32
  t.string "owner_type"
36
33
  t.integer "value"
37
- t.datetime "created_at", null: false
38
- t.datetime "updated_at", null: false
34
+ t.datetime "created_at", :null => false
35
+ t.datetime "updated_at", :null => false
39
36
  end
40
37
 
41
- create_table "mirror_users", force: true do |t|
42
- t.integer "user_id", limit: 8
43
- t.datetime "created_at", null: false
44
- t.datetime "updated_at", null: false
38
+ create_table "mirror_users", :force => true do |t|
39
+ t.integer "user_id", :limit => 8
40
+ t.datetime "created_at", :null => false
41
+ t.datetime "updated_at", :null => false
45
42
  end
46
43
 
47
- create_table "roots", force: true do |t|
48
- t.integer "user_id", limit: 8
49
- t.datetime "created_at", null: false
50
- t.datetime "updated_at", null: false
44
+ create_table "roots", :force => true do |t|
45
+ t.integer "user_id", :limit => 8
46
+ t.datetime "created_at", :null => false
47
+ t.datetime "updated_at", :null => false
51
48
  end
52
49
 
53
- create_table "switchman_shards", force: true do |t|
50
+ create_table "switchman_shards", :force => true do |t|
54
51
  t.string "name"
55
52
  t.string "database_server_id"
56
- t.boolean "default", default: false, null: false
53
+ t.boolean "default", :default => false, :null => false
57
54
  end
58
55
 
59
- create_table "users", force: true do |t|
56
+ create_table "users", :force => true do |t|
60
57
  t.string "name"
61
- t.integer "mirror_user_id", limit: 8
62
- t.datetime "created_at", null: false
63
- t.datetime "updated_at", null: false
64
- t.integer "parent_id", limit: 8
58
+ t.integer "mirror_user_id", :limit => 8
59
+ t.datetime "created_at", :null => false
60
+ t.datetime "updated_at", :null => false
61
+ t.integer "parent_id", :limit => 8
65
62
  end
66
63
 
67
64
  end
@@ -1,101 +1,62 @@
1
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
-  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreateSwitchmanShards (20130328212039)
5
-  (0.0ms) begin transaction
6
-  (0.4ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL) 
7
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328212039"]]
8
-  (0.8ms) commit transaction
9
- Migrating to CreateDefaultShard (20130328224244)
10
-  (0.1ms) begin transaction
11
- Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
12
- SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES (?) [["default", true]]
13
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
14
-  (0.2ms) begin transaction [shard 1 deploy]
15
- SQL (5023.8ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328224244"]] [shard 1 deploy]
16
- SQLite3::BusyException: database is locked: INSERT INTO "schema_migrations" ("version") VALUES (?)
17
-  (0.1ms) rollback transaction [shard 1 deploy]
18
-  (6.5ms) rollback transaction
19
-  (1.3ms) SELECT * FROM unnest(current_schemas(false))
20
- PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
21
- LINE 5: WHERE a.attrelid = '"switchman_shards"'::regc...
22
- ^
23
- : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
24
- pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
25
- FROM pg_attribute a LEFT JOIN pg_attrdef d
26
- ON a.attrelid = d.adrelid AND a.attnum = d.adnum
27
- WHERE a.attrelid = '"switchman_shards"'::regclass
28
- AND a.attnum > 0 AND NOT a.attisdropped
29
- ORDER BY a.attnum
30
-
31
-  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
32
-  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
33
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
34
- Migrating to CreateSwitchmanShards (20130328212039)
35
-  (0.1ms) BEGIN
36
-  (3.7ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)
37
- SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]]
38
-  (0.4ms) COMMIT
39
- Migrating to CreateDefaultShard (20130328224244)
40
-  (0.3ms) BEGIN
41
- Switchman::Shard Exists (0.5ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
42
- SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]
43
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
44
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]]
45
-  (0.3ms) COMMIT
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+  (0.1ms) select sqlite_version(*)
4
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
5
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
+  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
46
7
  Migrating to CreateUsers (20130403132607)
47
-  (0.1ms) BEGIN
48
-  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)
49
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]]
50
-  (0.4ms) COMMIT
8
+  (0.0ms) begin transaction
9
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
10
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607')
11
+  (0.6ms) commit transaction
51
12
  Migrating to CreateAppendages (20130411202442)
52
-  (0.1ms) BEGIN
53
-  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)
54
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]]
55
-  (0.4ms) COMMIT
13
+  (0.0ms) begin transaction
14
+  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
15
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442')
16
+  (0.5ms) commit transaction
56
17
  Migrating to CreateMirrorUsers (20130411202551)
57
-  (0.1ms) BEGIN
58
-  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)
59
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]]
60
-  (0.3ms) COMMIT
18
+  (0.0ms) begin transaction
19
+  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
20
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551')
21
+  (0.5ms) commit transaction
61
22
  Migrating to CreateDigits (20131022202028)
62
-  (0.1ms) BEGIN
63
-  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)
64
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]]
65
-  (0.3ms) COMMIT
23
+  (0.0ms) begin transaction
24
+  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
25
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028')
26
+  (0.5ms) commit transaction
66
27
  Migrating to CreateFeatures (20131206172923)
67
-  (0.1ms) BEGIN
68
-  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
69
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]]
70
-  (0.3ms) COMMIT
28
+  (0.0ms) begin transaction
29
+  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
30
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923')
31
+  (0.5ms) commit transaction
71
32
  Migrating to AddParentIdToUsers (20140123154135)
72
-  (0.1ms) BEGIN
73
-  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint
74
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]]
75
-  (0.3ms) COMMIT
33
+  (0.0ms) begin transaction
34
+  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8)
35
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135')
36
+  (0.7ms) commit transaction
76
37
  Migrating to CreateRoots (20140219183820)
77
-  (0.1ms) BEGIN
78
-  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)
79
- SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]]
80
-  (0.4ms) COMMIT
81
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
82
-  (1.0ms) SELECT * FROM unnest(current_schemas(false))
83
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
84
-  (0.2ms) SELECT * FROM unnest(current_schemas(false))
85
- Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1
86
- Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1
87
-  (0.7ms) SELECT COUNT(*) FROM "users" [shard 1 master]
88
-  (2.2ms) SELECT * FROM unnest(current_schemas(false))
89
- Switchman::Shard Load (2.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
90
-  (0.2ms) SELECT * FROM unnest(current_schemas(false))
91
- Switchman::Shard Load (2.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1
92
-  (0.3ms) SELECT * FROM unnest(current_schemas(false)) [shard master]
93
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1
94
- Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1 master]
38
+  (0.0ms) begin transaction
39
+  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
40
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820')
41
+  (1.2ms) commit transaction
42
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
43
+ Connecting to database specified by database.yml
44
+  (0.1ms) select sqlite_version(*)
45
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
46
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
47
+  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
48
+ Migrating to CreateSwitchmanShards (20130328212039)
49
+  (0.0ms) begin transaction
50
+  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)
51
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039')
52
+  (0.6ms) commit transaction
53
+ Migrating to CreateDefaultShard (20130328224244)
54
+  (0.0ms) begin transaction
55
+ Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
56
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES (?, ?, ?) [["database_server_id", nil], ["default", true], ["name", nil]]
57
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
58
+  (4936.7ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 1 master]
59
+ SQLite3::BusyException: database is locked: INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244')
60
+  (1.1ms) rollback transaction
61
+  (0.1ms) select sqlite_version(*) [shard 1 master]
95
62
  Connecting to database specified by database.yml
96
-  (6.1ms) SELECT * FROM unnest(current_schemas(false))
97
- Switchman::Shard Load (1.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
98
-  (0.3ms) SELECT * FROM unnest(current_schemas(false))
99
- Switchman::Shard Load (1.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1
100
-  (0.4ms) SELECT * FROM unnest(current_schemas(false)) [shard master]
101
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL LIMIT 1
@@ -0,0 +1,8 @@
1
+ Connecting to database specified by database.yml
2
+ Migrating to CreateUsers (20130403132607)
3
+ Migrating to CreateAppendages (20130411202442)
4
+ Migrating to CreateMirrorUsers (20130411202551)
5
+ Migrating to CreateDigits (20131022202028)
6
+ Migrating to CreateFeatures (20131206172923)
7
+ Migrating to AddParentIdToUsers (20140123154135)
8
+ Migrating to CreateRoots (20140219183820)
@@ -1,44 +1,26 @@
1
1
  Connecting to database specified by database.yml
2
-  (0.6ms) select sqlite_version(*)
3
- SQL (0.2ms) DELETE FROM "switchman_shards"
4
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
5
- SQL (0.1ms) DELETE FROM "switchman_shards"
6
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
7
- SQL (0.1ms) DELETE FROM "switchman_shards"
8
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
9
- SQL (0.1ms) DELETE FROM "switchman_shards"
10
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
11
- SQL (0.1ms) DELETE FROM "switchman_shards"
12
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
13
- SQL (0.1ms) DELETE FROM "switchman_shards"
14
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
15
- SQL (0.1ms) DELETE FROM "switchman_shards"
16
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
17
- SQL (0.1ms) DELETE FROM "switchman_shards"
18
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
19
- SQL (0.1ms) DELETE FROM "switchman_shards"
20
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
21
- SQL (0.1ms) DELETE FROM "switchman_shards"
22
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
23
- SQL (0.1ms) DELETE FROM "switchman_shards"
2
+  (0.2ms) select sqlite_version(*)
3
+ SQL (0.9ms) DELETE FROM "switchman_shards"
24
4
  SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
25
5
  SQL (0.1ms) DELETE FROM "switchman_shards"
26
6
  SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
7
+  (0.0ms) begin transaction
8
+  (0.0ms) rollback transaction
9
+  (0.0ms) begin transaction
10
+  (0.0ms) rollback transaction
27
11
  SQL (0.1ms) DELETE FROM "switchman_shards"
28
12
  SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
29
13
  SQL (0.1ms) DELETE FROM "switchman_shards"
30
14
  SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
31
15
  SQL (0.1ms) DELETE FROM "switchman_shards"
32
16
  SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
33
-  (0.1ms) begin transaction
34
-  (0.0ms) rollback transaction
35
17
   (0.0ms) begin transaction
36
18
   (0.0ms) rollback transaction
37
19
   (0.0ms) begin transaction
38
20
   (0.0ms) rollback transaction
39
21
   (0.0ms) begin transaction
40
22
   (0.0ms) rollback transaction
41
-  (0.0ms) begin transaction
23
+  (10.0ms) begin transaction
42
24
   (0.0ms) rollback transaction
43
25
   (0.0ms) begin transaction
44
26
   (0.0ms) rollback transaction
@@ -50,12 +32,26 @@ SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_s
50
32
   (0.0ms) rollback transaction
51
33
  SQL (0.1ms) DELETE FROM "switchman_shards"
52
34
  SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
35
+  (0.0ms) begin transaction
36
+  (0.0ms) rollback transaction
37
+  (0.0ms) begin transaction
38
+  (0.0ms) rollback transaction
39
+  (0.0ms) begin transaction
40
+  (0.0ms) rollback transaction
41
+  (0.0ms) begin transaction
42
+  (0.0ms) rollback transaction
43
+  (0.0ms) begin transaction
44
+  (0.0ms) rollback transaction
45
+  (0.0ms) begin transaction
46
+  (0.0ms) rollback transaction
53
47
  SQL (0.1ms) DELETE FROM "switchman_shards"
54
48
  SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
55
49
  SQL (0.1ms) DELETE FROM "switchman_shards"
56
50
  SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
57
51
  SQL (0.1ms) DELETE FROM "switchman_shards"
58
52
  SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
53
+  (0.0ms) begin transaction
54
+  (0.0ms) rollback transaction
59
55
  SQL (0.1ms) DELETE FROM "switchman_shards"
60
56
  SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
61
57
  SQL (0.1ms) DELETE FROM "switchman_shards"
@@ -69,43 +65,9 @@ SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_s
69
65
  SQL (0.1ms) DELETE FROM "switchman_shards"
70
66
  SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
71
67
  SQL (0.1ms) DELETE FROM "switchman_shards"
72
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
73
- SQL (0.1ms) DELETE FROM "switchman_shards"
74
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
75
- SQL (0.1ms) DELETE FROM "switchman_shards"
76
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
77
- SQL (0.1ms) DELETE FROM "switchman_shards"
78
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
79
- SQL (0.1ms) DELETE FROM "switchman_shards"
80
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
81
- SQL (0.1ms) DELETE FROM "switchman_shards"
82
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
83
- SQL (0.1ms) DELETE FROM "switchman_shards"
84
- SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
85
- SQL (0.1ms) DELETE FROM "switchman_shards"
86
68
  SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"
87
69
  Connecting to database specified by database.yml
88
-  (0.0ms) select sqlite_version(*)
89
-  (7.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
90
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
91
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
92
- Migrating to CreateSwitchmanShards (20130328212039)
93
-  (0.0ms) begin transaction
94
-  (0.3ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)
95
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039')
96
-  (0.8ms) commit transaction
97
- Migrating to CreateDefaultShard (20130328224244)
98
-  (0.0ms) begin transaction
99
- Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
100
- SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES (?, ?, ?) [["database_server_id", nil], ["default", true], ["name", nil]]
101
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
102
-  (5034.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 1 deploy]
103
- SQLite3::BusyException: database is locked: INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244')
104
-  (6.9ms) rollback transaction
105
-  (0.1ms) select sqlite_version(*) [shard 1 deploy]
106
- Connecting to database specified by database.yml
107
- Connecting to database specified by database.yml
108
-  (0.6ms) SELECT * FROM unnest(current_schemas(false))
70
+  (0.7ms) SELECT * FROM unnest(current_schemas(false))
109
71
  PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
110
72
  LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla...
111
73
  ^
@@ -117,6 +79,12 @@ LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla...
117
79
  AND a.attnum > 0 AND NOT a.attisdropped
118
80
  ORDER BY a.attnum
119
81
 
82
+ SQL (1.3ms) DELETE FROM "switchman_shards"
83
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
84
+ LINE 1: DELETE FROM "switchman_shards"
85
+ ^
86
+ : DELETE FROM "switchman_shards"
87
+  (0.1ms) BEGIN
120
88
  PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
121
89
  LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla...
122
90
  ^
@@ -128,147262 +96,7545 @@ LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla...
128
96
  AND a.attnum > 0 AND NOT a.attisdropped
129
97
  ORDER BY a.attnum
130
98
 
131
-  (6.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
132
-  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
133
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
134
- Migrating to CreateSwitchmanShards (20130328212039)
99
+ PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
100
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
101
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
102
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
103
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
104
+ WHERE a.attrelid = '"switchman_shards"'::regclass
105
+ AND a.attnum > 0 AND NOT a.attisdropped
106
+ ORDER BY a.attnum
107
+
108
+  (0.1ms) ROLLBACK
135
109
   (0.1ms) BEGIN
136
-  (4.7ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)
137
-  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039')
138
-  (0.4ms) COMMIT
139
- Migrating to CreateDefaultShard (20130328224244)
110
+  (0.1ms) ROLLBACK
111
+ SQL (0.2ms) DELETE FROM "switchman_shards"
112
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
113
+ LINE 1: DELETE FROM "switchman_shards"
114
+ ^
115
+ : DELETE FROM "switchman_shards"
116
+ SQL (0.2ms) DELETE FROM "switchman_shards"
117
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
118
+ LINE 1: DELETE FROM "switchman_shards"
119
+ ^
120
+ : DELETE FROM "switchman_shards"
121
+ PG::UndefinedTable: ERROR: relation "users" does not exist
122
+ LINE 5: WHERE a.attrelid = '"users"'::regclass
123
+ ^
124
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
125
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
126
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
127
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
128
+ WHERE a.attrelid = '"users"'::regclass
129
+ AND a.attnum > 0 AND NOT a.attisdropped
130
+ ORDER BY a.attnum
131
+
132
+ SQL (0.2ms) DELETE FROM "switchman_shards"
133
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
134
+ LINE 1: DELETE FROM "switchman_shards"
135
+ ^
136
+ : DELETE FROM "switchman_shards"
137
+ SQL (0.1ms) DELETE FROM "switchman_shards"
138
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
139
+ LINE 1: DELETE FROM "switchman_shards"
140
+ ^
141
+ : DELETE FROM "switchman_shards"
142
+ SQL (0.1ms) DELETE FROM "switchman_shards"
143
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
144
+ LINE 1: DELETE FROM "switchman_shards"
145
+ ^
146
+ : DELETE FROM "switchman_shards"
147
+ SQL (0.2ms) DELETE FROM "switchman_shards"
148
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
149
+ LINE 1: DELETE FROM "switchman_shards"
150
+ ^
151
+ : DELETE FROM "switchman_shards"
152
+ SQL (0.1ms) DELETE FROM "switchman_shards"
153
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
154
+ LINE 1: DELETE FROM "switchman_shards"
155
+ ^
156
+ : DELETE FROM "switchman_shards"
157
+  (0.1ms) BEGIN
158
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
159
+ LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla...
160
+ ^
161
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
162
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
163
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
164
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
165
+ WHERE a.attrelid = '"switchman_shards"'::regclass
166
+ AND a.attnum > 0 AND NOT a.attisdropped
167
+ ORDER BY a.attnum
168
+
169
+  (0.0ms) ROLLBACK
170
+ SQL (0.1ms) DELETE FROM "switchman_shards"
171
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
172
+ LINE 1: DELETE FROM "switchman_shards"
173
+ ^
174
+ : DELETE FROM "switchman_shards"
175
+ SQL (0.1ms) DELETE FROM "switchman_shards"
176
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
177
+ LINE 1: DELETE FROM "switchman_shards"
178
+ ^
179
+ : DELETE FROM "switchman_shards"
180
+  (0.1ms) BEGIN
181
+  (0.1ms) ROLLBACK
182
+  (0.1ms) BEGIN
183
+  (0.1ms) ROLLBACK
184
+  (0.1ms) BEGIN
185
+  (0.1ms) ROLLBACK
186
+  (0.1ms) BEGIN
187
+  (0.1ms) ROLLBACK
188
+  (0.1ms) BEGIN
189
+  (0.1ms) ROLLBACK
190
+  (0.0ms) BEGIN
191
+  (0.0ms) ROLLBACK
192
+  (0.1ms) BEGIN
193
+  (0.1ms) ROLLBACK
194
+  (0.1ms) BEGIN
195
+  (0.1ms) ROLLBACK
196
+  (0.1ms) BEGIN
197
+  (0.1ms) ROLLBACK
198
+  (0.1ms) BEGIN
199
+  (0.1ms) ROLLBACK
200
+  (0.1ms) BEGIN
201
+  (0.1ms) ROLLBACK
202
+ SQL (0.2ms) DELETE FROM "switchman_shards"
203
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
204
+ LINE 1: DELETE FROM "switchman_shards"
205
+ ^
206
+ : DELETE FROM "switchman_shards"
140
207
   (0.1ms) BEGIN
141
- Switchman::Shard Exists (0.5ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
142
- SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]
143
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
144
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244')
145
-  (0.3ms) COMMIT
208
+  (0.1ms) ROLLBACK
209
+  (0.1ms) BEGIN
210
+  (0.1ms) ROLLBACK
211
+  (0.1ms) BEGIN
212
+  (0.1ms) ROLLBACK
213
+ SQL (0.1ms) DELETE FROM "switchman_shards"
214
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
215
+ LINE 1: DELETE FROM "switchman_shards"
216
+ ^
217
+ : DELETE FROM "switchman_shards"
218
+ SQL (0.2ms) DELETE FROM "switchman_shards"
219
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
220
+ LINE 1: DELETE FROM "switchman_shards"
221
+ ^
222
+ : DELETE FROM "switchman_shards"
223
+ SQL (0.2ms) DELETE FROM "switchman_shards"
224
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
225
+ LINE 1: DELETE FROM "switchman_shards"
226
+ ^
227
+ : DELETE FROM "switchman_shards"
228
+ SQL (0.2ms) DELETE FROM "switchman_shards"
229
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
230
+ LINE 1: DELETE FROM "switchman_shards"
231
+ ^
232
+ : DELETE FROM "switchman_shards"
233
+ SQL (0.1ms) DELETE FROM "switchman_shards"
234
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
235
+ LINE 1: DELETE FROM "switchman_shards"
236
+ ^
237
+ : DELETE FROM "switchman_shards"
238
+ Connecting to database specified by database.yml
239
+  (0.4ms) SELECT * FROM unnest(current_schemas(false))
240
+ PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist
241
+ LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla...
242
+ ^
243
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
244
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
245
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
246
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
247
+ WHERE a.attrelid = '"switchman_shards"'::regclass
248
+ AND a.attnum > 0 AND NOT a.attisdropped
249
+ ORDER BY a.attnum
250
+
251
+  (2.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
252
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
253
+  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
146
254
  Migrating to CreateUsers (20130403132607)
147
255
   (0.1ms) BEGIN
148
-  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
149
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607')
150
-  (0.4ms) COMMIT
256
+  (24.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)
257
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607')
258
+  (0.2ms) COMMIT
151
259
  Migrating to CreateAppendages (20130411202442)
152
260
   (0.1ms) BEGIN
153
-  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
154
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442')
155
-  (0.3ms) COMMIT
261
+  (10.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
262
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442')
263
+  (9.5ms) COMMIT
156
264
  Migrating to CreateMirrorUsers (20130411202551)
157
-  (0.1ms) BEGIN
158
-  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
265
+  (4.8ms) BEGIN
266
+  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
159
267
   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551')
160
-  (0.3ms) COMMIT
268
+  (0.6ms) COMMIT
161
269
  Migrating to CreateDigits (20131022202028)
162
-  (0.1ms) BEGIN
163
-  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
270
+  (0.2ms) BEGIN
271
+  (11.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
164
272
   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028')
165
-  (0.4ms) COMMIT
273
+  (9.4ms) COMMIT
166
274
  Migrating to CreateFeatures (20131206172923)
167
-  (0.1ms) BEGIN
168
-  (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)
275
+  (4.8ms) BEGIN
276
+  (10.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)
169
277
   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923')
170
-  (0.3ms) COMMIT
278
+  (14.4ms) COMMIT
171
279
  Migrating to AddParentIdToUsers (20140123154135)
172
-  (0.1ms) BEGIN
173
-  (0.7ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint
280
+  (0.2ms) BEGIN
281
+  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint
174
282
   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135')
175
-  (0.3ms) COMMIT
283
+  (9.1ms) COMMIT
176
284
  Migrating to CreateRoots (20140219183820)
177
285
   (0.1ms) BEGIN
178
-  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
286
+  (8.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
179
287
   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820')
180
-  (0.3ms) COMMIT
181
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
288
+  (9.5ms) COMMIT
289
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
182
290
  Connecting to database specified by database.yml
183
-  (0.4ms) SELECT * FROM unnest(current_schemas(false))
184
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
185
-  (0.3ms) SELECT * FROM unnest(current_schemas(false))
186
- Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL LIMIT 1
187
-  (6.7ms) SELECT * FROM unnest(current_schemas(false)) [shard master]
188
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL LIMIT 1
189
- SQL (7.3ms) DELETE FROM "switchman_shards" [shard 1 master]
190
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1 master]
191
-  (0.1ms) BEGIN [shard 1 master]
192
- Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1 master]
193
- 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 1 master]
194
-  (0.3ms) COMMIT [shard 1 master]
195
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1 master]
196
- 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 2 master]
197
-  (0.1ms) BEGIN [shard 2 master]
198
- 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 2 master]
199
-  (0.7ms) CREATE SCHEMA switchman_test_shard_3 [shard 3 deploy]
200
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 3 deploy]
201
-  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 3 deploy]
202
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 3 deploy]
203
- Migrating to CreateUsers (20130403132607)
204
-  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 3 deploy]
205
-  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 3 deploy]
206
- Migrating to CreateAppendages (20130411202442)
207
-  (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 3 deploy]
208
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 3 deploy]
209
- Migrating to CreateMirrorUsers (20130411202551)
210
-  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 3 deploy]
211
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 3 deploy]
212
- Migrating to CreateDigits (20131022202028)
213
-  (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 3 deploy]
214
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 3 deploy]
215
- Migrating to CreateFeatures (20131206172923)
216
-  (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 3 deploy]
217
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 3 deploy]
218
- Migrating to AddParentIdToUsers (20140123154135)
219
-  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 3 deploy]
220
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 3 deploy]
221
- Migrating to CreateRoots (20140219183820)
222
-  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 3 deploy]
223
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 3 deploy]
224
-  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_3' WHERE "switchman_shards"."id" = 3 [shard 2 master]
225
-  (0.7ms) COMMIT [shard 2 master]
226
- 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 2 master]
227
-  (0.1ms) BEGIN [shard 2 master]
228
- 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 2 master]
229
-  (0.3ms) COMMIT [shard 2 master]
230
-  (0.5ms) CREATE SCHEMA switchman_test_shard_4 [shard 4 deploy]
231
-  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4 deploy]
232
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4 deploy]
233
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4 deploy]
234
- Migrating to CreateUsers (20130403132607)
235
-  (0.1ms) BEGIN [shard 4 deploy]
236
-  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4 deploy]
237
-  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4 deploy]
238
-  (0.3ms) COMMIT [shard 4 deploy]
239
- Migrating to CreateAppendages (20130411202442)
240
-  (0.1ms) BEGIN [shard 4 deploy]
241
-  (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 4 deploy]
242
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4 deploy]
243
-  (0.3ms) COMMIT [shard 4 deploy]
244
- Migrating to CreateMirrorUsers (20130411202551)
245
-  (0.1ms) BEGIN [shard 4 deploy]
246
-  (1.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4 deploy]
247
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4 deploy]
248
-  (0.3ms) COMMIT [shard 4 deploy]
249
- Migrating to CreateDigits (20131022202028)
250
-  (0.1ms) BEGIN [shard 4 deploy]
251
-  (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 4 deploy]
252
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4 deploy]
253
-  (0.3ms) COMMIT [shard 4 deploy]
254
- Migrating to CreateFeatures (20131206172923)
255
-  (0.1ms) BEGIN [shard 4 deploy]
256
-  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4 deploy]
257
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4 deploy]
258
-  (0.4ms) COMMIT [shard 4 deploy]
259
- Migrating to AddParentIdToUsers (20140123154135)
260
-  (0.1ms) BEGIN [shard 4 deploy]
261
-  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4 deploy]
262
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4 deploy]
263
-  (0.3ms) COMMIT [shard 4 deploy]
264
- Migrating to CreateRoots (20140219183820)
265
-  (0.1ms) BEGIN [shard 4 deploy]
266
-  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4 deploy]
267
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4 deploy]
268
-  (0.3ms) COMMIT [shard 4 deploy]
269
-  (0.1ms) BEGIN [shard 2 master]
270
-  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4' WHERE "switchman_shards"."id" = 4 [shard 2 master]
271
-  (0.3ms) COMMIT [shard 2 master]
272
- SQL (0.3ms) DELETE FROM "switchman_shards" [shard 2 master]
273
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
274
-  (0.1ms) BEGIN [shard 2 master]
275
- Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
276
- SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]
277
-  (0.3ms) COMMIT [shard 2 master]
278
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
279
-  (0.1ms) BEGIN [shard 2 master]
280
- SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]
281
-  (0.5ms) COMMIT [shard 2 master]
282
-  (0.1ms) BEGIN [shard 2 master]
283
- SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]
284
-  (0.3ms) COMMIT [shard 2 master]
285
-  (0.1ms) BEGIN [shard 2 master]
286
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
287
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
288
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
289
-  (0.1ms) BEGIN [shard 4 master]
290
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
291
- SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 2 master]
292
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
293
-  (0.1ms) SAVEPOINT active_record_1 [shard 3 master]
294
- 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", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 3 master]
295
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
296
- SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 1 [shard 3 master]
297
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [shard 2 master]
298
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 3 LIMIT 1 [shard 2 master]
299
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [shard 3 master]
300
-  (0.1ms) ROLLBACK [shard 4 master]
301
-  (0.1ms) ROLLBACK [shard 3 master]
302
-  (0.0ms) BEGIN [shard 2 master]
303
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
304
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
305
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
306
-  (0.1ms) BEGIN [shard 4 master]
307
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
308
- 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", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 2 master]
309
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
310
-  (0.0ms) SAVEPOINT active_record_1 [shard 3 master]
311
- 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", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 3 master]
312
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
313
- SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2) [shard 2 master]
314
- SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2) [shard 3 master]
315
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2]] [shard 2 master]
316
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2]] [shard 3 master]
317
-  (0.1ms) ROLLBACK [shard 4 master]
318
-  (0.1ms) ROLLBACK [shard 3 master]
319
-  (0.1ms) BEGIN [shard 2 master]
320
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
321
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
322
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
323
-  (0.0ms) BEGIN [shard 4 master]
324
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
325
- 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", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 2 master]
326
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
327
-  (0.0ms) SAVEPOINT active_record_1 [shard 3 master]
328
- 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", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 3 master]
329
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
330
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1 [shard 3 master]
331
-  (0.1ms) ROLLBACK [shard 4 master]
332
-  (0.1ms) ROLLBACK [shard 3 master]
333
-  (0.0ms) BEGIN [shard 2 master]
334
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
335
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
336
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
337
-  (0.0ms) BEGIN [shard 4 master]
338
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
339
- 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", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 2 master]
340
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
341
-  (0.0ms) SAVEPOINT active_record_1 [shard 3 master]
342
- 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", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 3 master]
343
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
344
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 2 master]
345
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 3 master]
346
-  (0.1ms) ROLLBACK [shard 4 master]
347
-  (0.1ms) ROLLBACK [shard 3 master]
348
-  (0.0ms) BEGIN [shard 2 master]
349
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
350
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
351
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
352
-  (0.1ms) BEGIN [shard 4 master]
353
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
354
- 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", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 2 master]
355
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
356
-  (0.1ms) SAVEPOINT active_record_1 [shard 3 master]
357
- 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", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 3 master]
358
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
359
-  (0.1ms) ROLLBACK [shard 4 master]
360
-  (0.1ms) ROLLBACK [shard 3 master]
361
- SQL (0.3ms) DELETE FROM "switchman_shards" [shard 2 master]
362
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
363
-  (0.1ms) BEGIN [shard 2 master]
364
- Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
365
- SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]
366
-  (0.3ms) COMMIT [shard 2 master]
367
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
368
-  (0.1ms) BEGIN [shard 2 master]
369
- SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]
370
-  (0.2ms) COMMIT [shard 2 master]
371
-  (0.1ms) BEGIN [shard 2 master]
372
- SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]
373
-  (0.3ms) COMMIT [shard 2 master]
374
-  (0.0ms) BEGIN [shard 2 master]
375
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
376
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
377
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
378
-  (0.1ms) BEGIN [shard 4 master]
379
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
380
- 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", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 2 master]
381
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
382
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
383
- SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 2 master]
384
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
385
-  (0.1ms) SAVEPOINT active_record_1 [shard 3 master]
386
- 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", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 3 master]
387
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
388
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
389
- SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 3 master]
390
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
391
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
392
- 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", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 4 master]
393
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
394
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
395
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
396
- SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 4 master]
397
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
398
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
399
-  (0.1ms) ROLLBACK [shard 4 master]
400
-  (0.1ms) ROLLBACK [shard 2 master]
401
-  (0.1ms) BEGIN [shard 2 master]
402
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
403
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
404
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
405
-  (0.1ms) BEGIN [shard 4 master]
406
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
407
- 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", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 2 master]
408
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
409
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
410
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 2 master]
411
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
412
-  (0.0ms) SAVEPOINT active_record_1 [shard 3 master]
413
- 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", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 3 master]
414
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
415
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
416
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 3 master]
417
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
418
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
419
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]
420
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
421
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
422
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
423
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 4 master]
424
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
425
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
426
- Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 3 LIMIT 1 [shard 2 master]
427
-  (0.1ms) ROLLBACK [shard 4 master]
428
-  (0.1ms) ROLLBACK [shard 2 master]
429
-  (0.0ms) BEGIN [shard 2 master]
430
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
431
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
432
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
433
-  (0.1ms) BEGIN [shard 4 master]
434
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
435
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
436
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
437
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
438
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 2 master]
439
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
440
-  (0.1ms) SAVEPOINT active_record_1 [shard 3 master]
441
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
442
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
443
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
444
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 3 master]
445
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
446
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
447
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]
448
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
449
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
450
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
451
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 4 master]
452
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
453
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
454
-  (0.1ms) ROLLBACK [shard 4 master]
455
-  (0.1ms) ROLLBACK [shard 2 master]
456
-  (0.0ms) BEGIN [shard 2 master]
457
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
458
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
459
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
460
-  (0.0ms) BEGIN [shard 4 master]
461
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
462
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
463
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
464
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
465
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 2 master]
466
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
467
-  (0.0ms) SAVEPOINT active_record_1 [shard 3 master]
468
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
469
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
470
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
471
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 3 master]
472
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
473
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
474
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]
475
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
476
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
477
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
478
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 4 master]
479
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
480
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
481
-  (0.1ms) ROLLBACK [shard 4 master]
482
-  (0.1ms) ROLLBACK [shard 2 master]
483
-  (0.0ms) BEGIN [shard 2 master]
484
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
485
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
486
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
487
-  (0.0ms) BEGIN [shard 4 master]
488
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
489
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
490
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
491
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
492
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 2 master]
493
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
494
-  (0.0ms) SAVEPOINT active_record_1 [shard 3 master]
495
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
496
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
497
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
498
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 3 master]
499
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
500
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
501
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]
502
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
503
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
504
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
505
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 4 master]
506
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
507
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
508
-  (0.1ms) ROLLBACK [shard 4 master]
509
-  (0.1ms) ROLLBACK [shard 2 master]
510
-  (0.1ms) BEGIN [shard 2 master]
511
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
512
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
513
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
514
-  (0.1ms) BEGIN [shard 4 master]
515
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
516
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
517
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
518
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
519
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 2 master]
520
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
521
-  (0.1ms) SAVEPOINT active_record_1 [shard 3 master]
522
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
523
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
524
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
525
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 3 master]
526
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
527
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
528
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]
529
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
530
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
531
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
532
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 4 master]
533
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
534
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
535
-  (0.1ms) ROLLBACK [shard 4 master]
536
-  (0.1ms) ROLLBACK [shard 2 master]
537
-  (0.1ms) BEGIN [shard 2 master]
538
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
539
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
540
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
541
-  (0.1ms) BEGIN [shard 4 master]
542
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
543
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
544
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
545
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
546
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 2 master]
547
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
548
-  (0.1ms) SAVEPOINT active_record_1 [shard 3 master]
549
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
550
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
551
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
552
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 3 master]
553
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
554
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
555
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]
556
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
557
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
558
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
559
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 4 master]
560
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
561
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
562
-  (0.1ms) ROLLBACK [shard 4 master]
563
-  (0.1ms) ROLLBACK [shard 2 master]
564
-  (0.1ms) BEGIN [shard 2 master]
565
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
566
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
567
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
568
-  (0.1ms) BEGIN [shard 4 master]
569
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
570
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
571
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
572
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
573
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 2 master]
574
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
575
-  (0.1ms) SAVEPOINT active_record_1 [shard 3 master]
576
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
577
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
578
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
579
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 3 master]
580
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
581
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
582
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]
583
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
584
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
585
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
586
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 4 master]
587
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
588
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
589
-  (0.2ms) ROLLBACK [shard 4 master]
590
-  (0.1ms) ROLLBACK [shard 2 master]
591
-  (0.0ms) BEGIN [shard 2 master]
592
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
593
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
594
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
595
-  (0.0ms) BEGIN [shard 4 master]
596
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
597
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
598
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
599
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
600
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 2 master]
601
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
602
-  (0.1ms) SAVEPOINT active_record_1 [shard 3 master]
603
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
604
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
605
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
606
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 3 master]
607
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
608
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
609
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]
610
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
611
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
612
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
613
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 4 master]
614
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
615
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
616
-  (0.1ms) ROLLBACK [shard 4 master]
617
-  (0.1ms) ROLLBACK [shard 2 master]
618
-  (0.1ms) BEGIN [shard 2 master]
619
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
620
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
621
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
622
-  (0.1ms) BEGIN [shard 4 master]
623
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
624
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
625
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
626
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
627
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 2 master]
628
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
629
-  (0.0ms) SAVEPOINT active_record_1 [shard 3 master]
630
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
631
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
632
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
633
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 3 master]
634
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
635
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
636
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]
637
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
638
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
639
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
640
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 4 master]
641
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
642
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
643
-  (0.1ms) ROLLBACK [shard 4 master]
644
-  (0.1ms) ROLLBACK [shard 2 master]
645
-  (0.0ms) BEGIN [shard 2 master]
646
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
647
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
648
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
649
-  (0.0ms) BEGIN [shard 4 master]
650
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
651
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
652
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
653
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
654
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 2 master]
655
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
656
-  (0.1ms) SAVEPOINT active_record_1 [shard 3 master]
657
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
658
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
659
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
660
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 3 master]
661
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
662
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
663
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]
664
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
665
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
666
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
667
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 4 master]
668
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
669
-  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
670
-  (0.1ms) ROLLBACK [shard 4 master]
671
-  (0.1ms) ROLLBACK [shard 2 master]
672
-  (0.0ms) BEGIN [shard 2 master]
673
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
674
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
675
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
676
-  (0.0ms) BEGIN [shard 4 master]
677
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
678
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
679
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
680
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
681
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 2 master]
682
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
683
-  (0.0ms) SAVEPOINT active_record_1 [shard 3 master]
684
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
685
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
686
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
687
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 3 master]
688
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
689
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
690
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]
691
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
692
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
693
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
694
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 4 master]
695
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
696
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
697
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
698
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 17], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
699
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
700
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
701
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 18], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
702
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
703
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 2 master]
704
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 17 LIMIT 1 [shard 2 master]
705
-  (0.1ms) SHOW max_identifier_length [shard 2 master]
706
- User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 17 [shard 2 master]
707
-  (0.1ms) ROLLBACK [shard 4 master]
708
-  (0.2ms) ROLLBACK [shard 2 master]
709
-  (0.1ms) BEGIN [shard 2 master]
710
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
711
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
712
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
713
-  (0.1ms) BEGIN [shard 4 master]
714
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
715
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
716
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
717
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
718
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 2 master]
719
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
720
-  (0.0ms) SAVEPOINT active_record_1 [shard 3 master]
721
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
722
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
723
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
724
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 3 master]
725
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
726
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
727
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]
728
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
729
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
730
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
731
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 4 master]
732
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
733
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
734
-  (0.1ms) ROLLBACK [shard 4 master]
735
-  (0.1ms) ROLLBACK [shard 2 master]
736
-  (0.1ms) BEGIN [shard 2 master]
737
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
738
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
739
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
740
-  (0.1ms) BEGIN [shard 4 master]
741
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
742
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
743
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
744
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
745
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 2 master]
746
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
747
-  (0.1ms) SAVEPOINT active_record_1 [shard 3 master]
748
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
749
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
750
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
751
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 3 master]
752
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
753
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
754
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]
755
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
756
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
757
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
758
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 4 master]
759
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
760
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
761
-  (0.1ms) ROLLBACK [shard 4 master]
762
-  (0.1ms) ROLLBACK [shard 2 master]
763
-  (0.1ms) BEGIN [shard 2 master]
764
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
765
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
766
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
767
-  (0.1ms) BEGIN [shard 4 master]
768
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
769
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
770
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
771
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
772
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 2 master]
773
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
774
-  (0.1ms) SAVEPOINT active_record_1 [shard 3 master]
775
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
776
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
777
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
778
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 3 master]
779
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
780
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
781
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]
782
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
783
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
784
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
785
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 4 master]
786
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
787
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
788
-  (0.1ms) SAVEPOINT active_record_1 [shard 3 master]
789
- SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", nil]] [shard 3 master]
790
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
791
-  (0.1ms) ROLLBACK [shard 4 master]
792
-  (0.1ms) ROLLBACK [shard 3 master]
793
-  (0.0ms) BEGIN [shard 2 master]
794
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
795
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
796
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
797
-  (0.0ms) BEGIN [shard 4 master]
798
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
799
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
800
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
801
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
802
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 2 master]
803
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
804
-  (0.1ms) SAVEPOINT active_record_1 [shard 3 master]
805
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
806
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
807
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
808
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 3 master]
809
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
810
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
811
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]
812
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
813
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
814
-  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]
815
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 4 master]
816
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
817
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
818
-  (0.1ms) ROLLBACK [shard 4 master]
819
-  (0.2ms) ROLLBACK [shard 2 master]
820
- SQL (0.4ms) DELETE FROM "switchman_shards" [shard 2 master]
821
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
822
-  (0.0ms) BEGIN [shard 2 master]
823
- Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
824
- SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]
825
-  (0.3ms) COMMIT [shard 2 master]
826
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
827
-  (0.1ms) BEGIN [shard 2 master]
828
- SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]
829
-  (0.3ms) COMMIT [shard 2 master]
830
-  (0.1ms) BEGIN [shard 2 master]
831
- SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]
832
-  (0.2ms) COMMIT [shard 2 master]
833
-  (0.1ms) BEGIN [shard 2 master]
834
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
835
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
836
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
837
-  (0.0ms) BEGIN [shard 4 master]
838
-  (0.0ms) ROLLBACK [shard 4 master]
839
-  (0.0ms) ROLLBACK [shard 2 master]
840
-  (0.0ms) BEGIN [shard 2 master]
841
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
842
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
843
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
844
-  (0.0ms) BEGIN [shard 4 master]
845
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (2, 3) AND (id IN (3,4)) [shard 2 master]
846
-  (0.1ms) ROLLBACK [shard 4 master]
847
-  (0.1ms) ROLLBACK [shard 2 master]
848
-  (0.1ms) BEGIN [shard 2 master]
849
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
850
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
851
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
852
-  (0.0ms) BEGIN [shard 4 master]
853
-  (0.1ms) ROLLBACK [shard 4 master]
854
-  (0.1ms) ROLLBACK [shard 2 master]
855
-  (0.0ms) BEGIN [shard 2 master]
856
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
857
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
858
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
859
-  (0.0ms) BEGIN [shard 4 master]
860
-  (0.0ms) ROLLBACK [shard 4 master]
861
-  (0.1ms) ROLLBACK [shard 2 master]
862
-  (0.1ms) BEGIN [shard 2 master]
863
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
864
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
865
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
866
-  (0.0ms) BEGIN [shard 4 master]
867
-  (0.0ms) ROLLBACK [shard 4 master]
868
-  (0.1ms) ROLLBACK [shard 2 master]
869
- SQL (0.4ms) DELETE FROM "switchman_shards" [shard 2 master]
870
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
871
-  (0.0ms) BEGIN [shard 2 master]
872
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
873
- SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "non_existent_shard"]] [shard 2 master]
874
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
875
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
876
- SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 2 master]
877
-  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
878
-  (0.3ms) SELECT COUNT(*) FROM "users" [shard 5 master]
879
- PG::UndefinedTable: ERROR: relation "users" does not exist
880
- LINE 1: SELECT COUNT(*) FROM "users"
881
- ^
882
- : SELECT COUNT(*) FROM "users"
883
-  (0.7ms) SELECT COUNT(*) FROM "users"  [shard 6 master]
884
-  (0.1ms) ROLLBACK [shard 2 master]
885
-  (0.0ms) BEGIN [shard 2 master]
886
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
887
- SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 2 master]
888
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
889
-  (0.1ms) ROLLBACK [shard 2 master]
890
-  (0.1ms) BEGIN [shard 2 master]
891
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
892
- SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 2 master]
893
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
894
-  (0.1ms) ROLLBACK [shard 2 master]
895
-  (0.1ms) BEGIN [shard 2 master]
896
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
897
- SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 2 master]
898
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
899
-  (0.1ms) ROLLBACK [shard 2 master]
900
-  (0.1ms) BEGIN [shard 2 master]
901
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
902
- SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 2 master]
903
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
904
-  (0.1ms) ROLLBACK [shard 2 master]
905
-  (0.1ms) BEGIN [shard 2 master]
906
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
907
- SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 2 master]
908
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
909
-  (0.1ms) ROLLBACK [shard 2 master]
910
-  (0.1ms) BEGIN [shard 2 master]
911
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
912
- SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 2 master]
913
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
914
-  (0.1ms) ROLLBACK [shard 2 master]
915
-  (0.0ms) BEGIN [shard 2 master]
916
- Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
917
- SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]
918
-  (0.3ms) COMMIT [shard 2 master]
919
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
920
-  (0.0ms) BEGIN [shard 2 master]
921
- SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]
922
-  (0.3ms) COMMIT [shard 2 master]
923
-  (0.0ms) BEGIN [shard 2 master]
924
- SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]
925
-  (0.3ms) COMMIT [shard 2 master]
926
-  (0.0ms) BEGIN [shard 2 master]
927
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
928
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
929
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
930
-  (0.0ms) BEGIN [shard 4 master]
931
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
932
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
933
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
934
-  (0.1ms) ROLLBACK [shard 4 master]
935
-  (0.1ms) ROLLBACK [shard 2 master]
936
-  (0.0ms) BEGIN [shard 2 master]
937
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
938
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
939
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
940
-  (0.0ms) BEGIN [shard 4 master]
941
-  (0.0ms) ROLLBACK [shard 4 master]
942
-  (0.0ms) ROLLBACK [shard 2 master]
943
-  (0.1ms) BEGIN [shard 2 master]
944
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
945
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
946
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
947
-  (0.1ms) BEGIN [shard 4 master]
948
-  (0.1ms) ROLLBACK [shard 4 master]
949
-  (0.1ms) ROLLBACK [shard 2 master]
950
-  (0.1ms) BEGIN [shard 2 master]
951
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
952
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
953
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
954
-  (0.0ms) BEGIN [shard 4 master]
955
-  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]
956
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]
957
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
958
-  (0.0ms) SAVEPOINT active_record_1 [shard 3 master]
959
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
960
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
961
-  (0.1ms) ROLLBACK [shard 4 master]
962
-  (0.1ms) ROLLBACK [shard 3 master]
963
-  (0.0ms) BEGIN [shard 2 master]
964
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
965
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
966
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
967
-  (0.0ms) BEGIN [shard 4 master]
968
-  (0.0ms) SAVEPOINT active_record_1 [shard 3 master]
969
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
970
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
971
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 3 LIMIT 1 [shard 2 master]
972
-  (0.1ms) ROLLBACK [shard 4 master]
973
-  (0.1ms) ROLLBACK [shard 2 master]
974
-  (0.1ms) BEGIN [shard 2 master]
975
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
976
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
977
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
978
-  (0.0ms) BEGIN [shard 4 master]
979
-  (0.0ms) SAVEPOINT active_record_1 [shard 3 master]
980
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]
981
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
982
-  (0.1ms) SAVEPOINT active_record_1 [shard 3 master]
983
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 3 master]
984
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]
985
-  (0.2ms) SAVEPOINT active_record_1 [shard 4 master]
986
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 4 master]
987
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]
988
-  (0.1ms) ROLLBACK [shard 4 master]
989
-  (0.1ms) ROLLBACK [shard 3 master]
990
-  (0.1ms) BEGIN [shard 2 master]
991
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
992
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
993
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
994
-  (0.1ms) BEGIN [shard 4 master]
995
-  (0.1ms) ROLLBACK [shard 4 master]
996
-  (0.1ms) ROLLBACK [shard 2 master]
997
- SQL (11.5ms) DELETE FROM "switchman_shards" [shard 2 master]
998
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
999
-  (0.1ms) BEGIN [shard 2 master]
1000
- Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1001
- SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]
1002
-  (0.3ms) COMMIT [shard 2 master]
1003
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1004
-  (0.1ms) BEGIN [shard 2 master]
1005
- SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]
1006
-  (0.3ms) COMMIT [shard 2 master]
1007
-  (0.1ms) BEGIN [shard 2 master]
1008
- SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]
1009
-  (0.3ms) COMMIT [shard 2 master]
1010
-  (0.1ms) BEGIN [shard 2 master]
1011
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1012
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1013
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1014
-  (0.1ms) BEGIN [shard 4 master]
1015
-  (0.1ms) ROLLBACK [shard 4 master]
1016
-  (0.1ms) ROLLBACK [shard 2 master]
1017
-  (0.1ms) BEGIN [shard 2 master]
1018
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1019
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1020
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1021
-  (0.1ms) BEGIN [shard 4 master]
1022
-  (0.1ms) ROLLBACK [shard 4 master]
1023
-  (0.1ms) ROLLBACK [shard 2 master]
1024
-  (0.1ms) BEGIN [shard 2 master]
1025
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1026
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1027
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1028
-  (0.1ms) BEGIN [shard 4 master]
1029
-  (0.1ms) ROLLBACK [shard 4 master]
1030
-  (0.1ms) ROLLBACK [shard 2 master]
1031
-  (0.1ms) BEGIN [shard 2 master]
1032
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1033
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1034
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1035
-  (0.1ms) BEGIN [shard 4 master]
1036
-  (0.1ms) ROLLBACK [shard 4 master]
1037
-  (0.1ms) ROLLBACK [shard 2 master]
1038
-  (0.0ms) BEGIN [shard 2 master]
1039
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1040
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1041
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1042
-  (0.0ms) BEGIN [shard 4 master]
1043
-  (0.0ms) ROLLBACK [shard 4 master]
1044
-  (0.1ms) ROLLBACK [shard 2 master]
1045
-  (0.1ms) BEGIN [shard 2 master]
1046
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1047
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1048
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1049
-  (0.1ms) BEGIN [shard 4 master]
1050
-  (0.1ms) ROLLBACK [shard 4 master]
1051
-  (0.1ms) ROLLBACK [shard 2 master]
1052
- SQL (0.4ms) DELETE FROM "switchman_shards" [shard 2 master]
1053
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1054
-  (0.1ms) BEGIN [shard 2 master]
1055
- Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1056
- SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]
1057
-  (0.3ms) COMMIT [shard 2 master]
1058
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1059
-  (0.0ms) BEGIN [shard 2 master]
1060
- SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]
1061
-  (0.2ms) COMMIT [shard 2 master]
1062
-  (0.0ms) BEGIN [shard 2 master]
1063
- SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]
1064
-  (0.2ms) COMMIT [shard 2 master]
1065
-  (0.1ms) BEGIN [shard 2 master]
1066
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1067
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1068
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1069
-  (0.1ms) BEGIN [shard 4 master]
1070
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 3 LIMIT 1 [shard 2 master]
1071
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 4 LIMIT 1 [shard 2 master]
1072
-  (0.1ms) ROLLBACK [shard 4 master]
1073
-  (0.1ms) ROLLBACK [shard 2 master]
1074
-  (0.1ms) BEGIN [shard 2 master]
1075
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1076
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1077
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1078
-  (0.0ms) BEGIN [shard 4 master]
1079
-  (0.0ms) ROLLBACK [shard 4 master]
1080
-  (0.1ms) ROLLBACK [shard 2 master]
1081
-  (0.1ms) BEGIN [shard 2 master]
1082
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1083
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1084
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1085
-  (0.1ms) BEGIN [shard 4 master]
1086
-  (0.1ms) ROLLBACK [shard 4 master]
1087
-  (0.1ms) ROLLBACK [shard 2 master]
1088
-  (0.1ms) BEGIN [shard 2 master]
1089
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1090
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1091
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1092
-  (0.1ms) BEGIN [shard 4 master]
1093
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10004 LIMIT 1 [shard 2 master]
1094
-  (0.1ms) ROLLBACK [shard 4 master]
1095
-  (0.1ms) ROLLBACK [shard 2 master]
1096
-  (0.0ms) BEGIN [shard 2 master]
1097
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1098
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1099
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1100
-  (0.1ms) BEGIN [shard 4 master]
1101
-  (0.1ms) ROLLBACK [shard 4 master]
1102
-  (0.1ms) ROLLBACK [shard 2 master]
1103
-  (0.0ms) BEGIN [shard 2 master]
1104
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1105
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1106
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1107
-  (0.0ms) BEGIN [shard 4 master]
1108
-  (0.1ms) ROLLBACK [shard 4 master]
1109
-  (0.1ms) ROLLBACK [shard 2 master]
1110
-  (0.1ms) BEGIN [shard 2 master]
1111
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1112
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1113
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1114
-  (0.0ms) BEGIN [shard 4 master]
1115
-  (0.0ms) ROLLBACK [shard 4 master]
1116
-  (0.1ms) ROLLBACK [shard 2 master]
1117
-  (0.1ms) BEGIN [shard 2 master]
1118
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1119
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1120
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1121
-  (0.1ms) BEGIN [shard 4 master]
1122
-  (0.1ms) ROLLBACK [shard 4 master]
1123
-  (0.1ms) ROLLBACK [shard 2 master]
1124
-  (0.0ms) BEGIN [shard 2 master]
1125
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1126
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1127
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1128
-  (0.0ms) BEGIN [shard 4 master]
1129
-  (0.1ms) ROLLBACK [shard 4 master]
1130
-  (0.1ms) ROLLBACK [shard 2 master]
1131
-  (0.1ms) BEGIN [shard 2 master]
1132
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1133
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1134
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1135
-  (0.0ms) BEGIN [shard 4 master]
1136
-  (0.0ms) ROLLBACK [shard 4 master]
1137
-  (0.1ms) ROLLBACK [shard 2 master]
1138
-  (0.0ms) BEGIN [shard 2 master]
1139
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1140
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1141
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1142
-  (0.0ms) BEGIN [shard 4 master]
1143
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '10' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 2 master]
1144
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
1145
- SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", "public"]] [shard 2 master]
1146
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
1147
-  (0.6ms) CREATE SCHEMA switchman_test_shard_13 [shard 13 deploy]
1148
-  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 13 deploy]
1149
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 13 deploy]
1150
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 13 deploy]
1151
- Migrating to CreateUsers (20130403132607)
1152
-  (0.1ms) BEGIN [shard 13 deploy]
1153
-  (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 13 deploy]
1154
-  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 13 deploy]
1155
-  (0.4ms) COMMIT [shard 13 deploy]
1156
- Migrating to CreateAppendages (20130411202442)
1157
-  (0.1ms) BEGIN [shard 13 deploy]
1158
-  (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 13 deploy]
1159
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 13 deploy]
1160
-  (0.4ms) COMMIT [shard 13 deploy]
1161
- Migrating to CreateMirrorUsers (20130411202551)
1162
-  (0.2ms) BEGIN [shard 13 deploy]
1163
-  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 13 deploy]
1164
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 13 deploy]
1165
-  (0.4ms) COMMIT [shard 13 deploy]
1166
- Migrating to CreateDigits (20131022202028)
1167
-  (0.1ms) BEGIN [shard 13 deploy]
1168
-  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 13 deploy]
1169
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 13 deploy]
1170
-  (0.3ms) COMMIT [shard 13 deploy]
1171
- Migrating to CreateFeatures (20131206172923)
1172
-  (0.1ms) BEGIN [shard 13 deploy]
1173
-  (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 13 deploy]
1174
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 13 deploy]
1175
-  (0.4ms) COMMIT [shard 13 deploy]
1176
- Migrating to AddParentIdToUsers (20140123154135)
1177
-  (0.2ms) BEGIN [shard 13 deploy]
1178
-  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 13 deploy]
1179
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 13 deploy]
1180
-  (0.3ms) COMMIT [shard 13 deploy]
1181
- Migrating to CreateRoots (20140219183820)
1182
-  (0.1ms) BEGIN [shard 13 deploy]
1183
-  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 13 deploy]
1184
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 13 deploy]
1185
-  (0.3ms) COMMIT [shard 13 deploy]
1186
-  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]
1187
-  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_13' WHERE "switchman_shards"."id" = 13 [shard 2 master]
1188
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]
1189
-  (0.1ms) BEGIN [shard 13 master]
1190
- 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", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 13 master]
1191
-  (0.3ms) COMMIT [shard 13 master]
1192
-  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 13 master]
1193
-  (5.0ms) DROP SCHEMA switchman_test_shard_13 CASCADE [shard 13 deploy]
1194
-  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 13 master]
1195
- PG::UndefinedTable: ERROR: relation "users" does not exist
1196
- LINE 1: SELECT COUNT(*) FROM "users"
1197
- ^
1198
- : SELECT COUNT(*) FROM "users"
1199
-  (0.1ms) ROLLBACK [shard 4 master]
1200
-  (0.1ms) ROLLBACK [shard 2 master]
1201
-  (0.1ms) BEGIN [shard 2 master]
1202
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1203
- Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1204
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1205
-  (0.1ms) BEGIN [shard 4 master]
1206
-  (0.1ms) ROLLBACK [shard 4 master]
1207
-  (0.1ms) ROLLBACK [shard 2 master]
1208
-  (0.1ms) BEGIN [shard 2 master]
1209
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1210
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1211
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1212
-  (0.0ms) BEGIN [shard 4 master]
1213
-  (0.0ms) ROLLBACK [shard 4 master]
1214
-  (0.0ms) ROLLBACK [shard 2 master]
1215
-  (0.0ms) BEGIN [shard 2 master]
1216
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1217
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1218
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1219
-  (0.0ms) BEGIN [shard 4 master]
1220
-  (0.0ms) ROLLBACK [shard 4 master]
1221
-  (0.0ms) ROLLBACK [shard 2 master]
1222
-  (0.0ms) BEGIN [shard 2 master]
1223
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1224
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1225
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1226
-  (0.1ms) BEGIN [shard 4 master]
1227
-  (0.1ms) ROLLBACK [shard 4 master]
1228
-  (0.1ms) ROLLBACK [shard 2 master]
1229
-  (0.0ms) BEGIN [shard 2 master]
1230
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1231
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1232
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1233
-  (0.0ms) BEGIN [shard 4 master]
1234
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 2 master]
1235
-  (0.1ms) ROLLBACK [shard 4 master]
1236
-  (0.1ms) ROLLBACK [shard 2 master]
1237
-  (0.0ms) BEGIN [shard 2 master]
1238
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1239
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1240
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1241
-  (0.0ms) BEGIN [shard 4 master]
1242
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 2 master]
1243
-  (0.0ms) ROLLBACK [shard 4 master]
1244
-  (0.0ms) ROLLBACK [shard 2 master]
1245
-  (0.1ms) BEGIN [shard 2 master]
1246
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1247
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1248
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1249
-  (0.0ms) BEGIN [shard 4 master]
1250
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 2 master]
1251
-  (0.1ms) ROLLBACK [shard 4 master]
1252
-  (0.1ms) ROLLBACK [shard 2 master]
1253
-  (0.1ms) BEGIN [shard 2 master]
1254
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1255
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1256
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1257
-  (0.0ms) BEGIN [shard 4 master]
1258
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 2 master]
1259
-  (0.1ms) ROLLBACK [shard 4 master]
1260
-  (0.0ms) ROLLBACK [shard 2 master]
1261
-  (0.1ms) BEGIN [shard 2 master]
1262
- Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1263
- Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master]
1264
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]
1265
-  (0.1ms) BEGIN [shard 4 master]
1266
-  (0.1ms) ROLLBACK [shard 4 master]
1267
-  (0.1ms) ROLLBACK [shard 2 master]
1268
-  (0.1ms) BEGIN [shard 2 master]
1269
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]
1270
- Switchman::Shard Load (0.2ms)[0