switchman 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (251) hide show
  1. checksums.yaml +8 -8
  2. data/db/switchman_test.sqlite3 +0 -0
  3. data/lib/switchman/active_record/connection_pool.rb +3 -64
  4. data/lib/switchman/active_record/relation.rb +1 -1
  5. data/lib/switchman/connection_pool_proxy.rb +1 -0
  6. data/lib/switchman/engine.rb +7 -4
  7. data/lib/switchman/version.rb +1 -1
  8. data/spec/dummy/config/database.yml +10 -0
  9. data/spec/dummy/db/schema.rb +32 -29
  10. data/spec/dummy/db/switchman_test.sqlite3 +0 -0
  11. data/spec/dummy/log/development.log +23 -0
  12. data/spec/dummy/log/test.log +26208 -86491
  13. data/spec/dummy/tmp/cache/2E3/840/shard%2F3 +0 -0
  14. data/spec/dummy/tmp/cache/2E4/850/shard%2F4 +0 -0
  15. data/spec/dummy/tmp/cache/2E6/870/shard%2F6 +0 -0
  16. data/spec/dummy/tmp/cache/2E7/880/shard%2F7 +0 -0
  17. data/spec/dummy/tmp/cache/{346/D90/shard%2F105 → 313/970/shard%2F30} +1 -1
  18. data/spec/dummy/tmp/cache/314/990/shard%2F40 +0 -0
  19. data/spec/dummy/tmp/cache/{31C/A40/shard%2F75 → 315/970/shard%2F14} +1 -1
  20. data/spec/dummy/tmp/cache/315/9A0/shard%2F41 +0 -0
  21. data/spec/dummy/tmp/cache/315/9B0/shard%2F50 +0 -0
  22. data/spec/dummy/tmp/cache/317/9C0/shard%2F43 +0 -0
  23. data/spec/dummy/tmp/cache/318/9B0/shard%2F26 +0 -0
  24. data/spec/dummy/tmp/cache/318/9D0/shard%2F44 +0 -0
  25. data/spec/dummy/tmp/cache/319/9C0/shard%2F27 +0 -0
  26. data/spec/dummy/tmp/cache/31A/9F0/shard%2F46 +0 -0
  27. data/spec/dummy/tmp/cache/31C/A20/shard%2F57 +0 -0
  28. data/spec/dummy/tmp/cache/31D/A20/shard%2F49 +0 -0
  29. data/spec/dummy/tmp/cache/349/E10/shard%2F153 +0 -0
  30. data/spec/dummy/tmp/cache/34A/E20/shard%2F154 +0 -0
  31. data/spec/dummy/tmp/cache/{345/DC0/shard%2F140 → 34A/E50/shard%2F181} +1 -1
  32. data/spec/dummy/tmp/cache/{318/A00/shard%2F71 → 34E/E70/shard%2F167} +1 -1
  33. data/spec/dummy/tmp/cache/376/510/shard%2F2202 +1 -0
  34. data/spec/dummy/tmp/cache/376/520/shard%2F2211 +1 -0
  35. data/spec/dummy/tmp/cache/376/530/shard%2F2220 +1 -0
  36. data/spec/dummy/tmp/cache/377/4F0/shard%2F2014 +0 -0
  37. data/spec/dummy/tmp/cache/377/520/shard%2F2203 +1 -0
  38. data/spec/dummy/tmp/cache/377/530/shard%2F2212 +1 -0
  39. data/spec/dummy/tmp/cache/377/550/shard%2F2230 +1 -0
  40. data/spec/dummy/tmp/cache/377/550/shard%2F3040 +1 -0
  41. data/spec/dummy/tmp/cache/378/500/shard%2F2015 +0 -0
  42. data/spec/dummy/tmp/cache/378/520/shard%2F3005 +1 -0
  43. data/spec/dummy/tmp/cache/378/550/shard%2F2222 +1 -0
  44. data/spec/dummy/tmp/cache/378/560/shard%2F3122 +1 -0
  45. data/spec/dummy/tmp/cache/378/5A0/shard%2F2510 +1 -0
  46. data/spec/dummy/tmp/cache/378/5B0/shard%2F2600 +2 -0
  47. data/spec/dummy/tmp/cache/379/530/shard%2F3006 +1 -0
  48. data/spec/dummy/tmp/cache/379/540/shard%2F2205 +1 -0
  49. data/spec/dummy/tmp/cache/379/550/shard%2F2214 +1 -0
  50. data/spec/dummy/tmp/cache/379/560/shard%2F2223 +1 -0
  51. data/spec/dummy/tmp/cache/379/560/shard%2F3033 +1 -0
  52. data/spec/dummy/tmp/cache/379/560/shard%2F3114 +1 -0
  53. data/spec/dummy/tmp/cache/379/570/shard%2F3042 +1 -0
  54. data/spec/dummy/tmp/cache/379/580/shard%2F3051 +1 -0
  55. data/spec/dummy/tmp/cache/379/590/shard%2F3060 +1 -0
  56. data/spec/dummy/tmp/cache/379/5C0/shard%2F2601 +2 -0
  57. data/spec/dummy/tmp/cache/379/5D0/shard%2F2610 +2 -0
  58. data/spec/dummy/tmp/cache/37A/540/shard%2F3007 +1 -0
  59. data/spec/dummy/tmp/cache/37A/570/shard%2F2224 +1 -0
  60. data/spec/dummy/tmp/cache/37A/570/shard%2F3034 +1 -0
  61. data/spec/dummy/tmp/cache/37A/580/shard%2F3043 +1 -0
  62. data/spec/dummy/tmp/cache/37A/590/shard%2F3052 +1 -0
  63. data/spec/dummy/tmp/cache/37A/5A0/shard%2F3061 +1 -0
  64. data/spec/dummy/tmp/cache/37A/5B0/shard%2F3070 +1 -0
  65. data/spec/dummy/tmp/cache/37A/5E0/shard%2F2530 +0 -0
  66. data/spec/dummy/tmp/cache/37A/5F0/shard%2F2701 +0 -0
  67. data/spec/dummy/tmp/cache/37B/540/shard%2F2027 +1 -0
  68. data/spec/dummy/tmp/cache/37B/570/shard%2F3026 +1 -0
  69. data/spec/dummy/tmp/cache/37B/5C0/shard%2F2261 +1 -0
  70. data/spec/dummy/tmp/cache/37B/5C0/shard%2F2504 +1 -0
  71. data/spec/dummy/tmp/cache/37B/5C0/shard%2F3152 +1 -0
  72. data/spec/dummy/tmp/cache/37B/5D0/shard%2F2513 +1 -0
  73. data/spec/dummy/tmp/cache/37B/5E0/shard%2F2603 +2 -0
  74. data/spec/dummy/tmp/cache/37B/5F0/shard%2F2531 +0 -0
  75. data/spec/dummy/tmp/cache/37B/5F0/shard%2F2612 +2 -0
  76. data/spec/dummy/tmp/cache/37B/610/shard%2F2630 +2 -0
  77. data/spec/dummy/tmp/cache/37B/630/shard%2F2810 +2 -0
  78. data/spec/dummy/tmp/cache/37C/580/shard%2F2217 +1 -0
  79. data/spec/dummy/tmp/cache/37C/580/shard%2F3108 +1 -0
  80. data/spec/dummy/tmp/cache/37C/590/shard%2F3036 +1 -0
  81. data/spec/dummy/tmp/cache/37C/5A0/shard%2F3045 +1 -0
  82. data/spec/dummy/tmp/cache/37C/5B0/shard%2F3054 +1 -0
  83. data/spec/dummy/tmp/cache/37C/5C0/shard%2F3063 +1 -0
  84. data/spec/dummy/tmp/cache/37C/5D0/shard%2F2262 +1 -0
  85. data/spec/dummy/tmp/cache/37C/5D0/shard%2F3072 +0 -0
  86. data/spec/dummy/tmp/cache/37C/5E0/shard%2F2190 +1 -0
  87. data/spec/dummy/tmp/cache/37C/5F0/shard%2F2604 +2 -0
  88. data/spec/dummy/tmp/cache/37C/600/shard%2F2370 +1 -0
  89. data/spec/dummy/tmp/cache/37C/600/shard%2F2613 +2 -0
  90. data/spec/dummy/tmp/cache/37C/620/shard%2F2631 +2 -0
  91. data/spec/dummy/tmp/cache/37D/5A0/shard%2F3037 +1 -0
  92. data/spec/dummy/tmp/cache/37D/5B0/shard%2F3046 +1 -0
  93. data/spec/dummy/tmp/cache/37D/5C0/shard%2F3055 +1 -0
  94. data/spec/dummy/tmp/cache/37D/5D0/shard%2F2254 +1 -0
  95. data/spec/dummy/tmp/cache/37D/5D0/shard%2F3064 +1 -0
  96. data/spec/dummy/tmp/cache/37D/5E0/shard%2F3073 +1 -0
  97. data/spec/dummy/tmp/cache/37D/5F0/shard%2F2191 +1 -0
  98. data/spec/dummy/tmp/cache/37D/600/shard%2F2524 +1 -0
  99. data/spec/dummy/tmp/cache/37D/610/shard%2F2371 +1 -0
  100. data/spec/dummy/tmp/cache/37D/620/shard%2F2380 +1 -0
  101. data/spec/dummy/tmp/cache/37D/620/shard%2F2461 +1 -0
  102. data/spec/dummy/tmp/cache/37D/630/shard%2F2470 +1 -0
  103. data/spec/dummy/tmp/cache/37D/650/shard%2F2650 +0 -0
  104. data/spec/dummy/tmp/cache/37E/5B0/shard%2F2228 +1 -0
  105. data/spec/dummy/tmp/cache/37E/5D0/shard%2F3137 +1 -0
  106. data/spec/dummy/tmp/cache/37E/5F0/shard%2F2264 +1 -0
  107. data/spec/dummy/tmp/cache/37E/610/shard%2F2525 +1 -0
  108. data/spec/dummy/tmp/cache/37E/610/shard%2F2606 +2 -0
  109. data/spec/dummy/tmp/cache/37E/620/shard%2F2615 +2 -0
  110. data/spec/dummy/tmp/cache/37E/630/shard%2F2624 +2 -0
  111. data/spec/dummy/tmp/cache/37E/630/shard%2F2705 +1 -0
  112. data/spec/dummy/tmp/cache/37E/640/shard%2F2633 +0 -0
  113. data/spec/dummy/tmp/cache/37E/650/shard%2F2723 +1 -0
  114. data/spec/dummy/tmp/cache/37F/5C0/shard%2F2229 +1 -0
  115. data/spec/dummy/tmp/cache/37F/5C0/shard%2F3039 +1 -0
  116. data/spec/dummy/tmp/cache/37F/5E0/shard%2F3057 +1 -0
  117. data/spec/dummy/tmp/cache/37F/5F0/shard%2F3066 +1 -0
  118. data/spec/dummy/tmp/cache/37F/600/shard%2F3075 +1 -0
  119. data/spec/dummy/tmp/cache/37F/610/shard%2F2193 +1 -0
  120. data/spec/dummy/tmp/cache/37F/620/shard%2F2607 +2 -0
  121. data/spec/dummy/tmp/cache/37F/620/shard%2F3093 +1 -0
  122. data/spec/dummy/tmp/cache/37F/630/shard%2F2373 +1 -0
  123. data/spec/dummy/tmp/cache/37F/630/shard%2F2535 +0 -0
  124. data/spec/dummy/tmp/cache/37F/630/shard%2F2616 +2 -0
  125. data/spec/dummy/tmp/cache/37F/640/shard%2F2382 +1 -0
  126. data/spec/dummy/tmp/cache/37F/640/shard%2F2625 +2 -0
  127. data/spec/dummy/tmp/cache/37F/650/shard%2F2634 +0 -0
  128. data/spec/dummy/tmp/cache/380/5F0/shard%2F3058 +1 -0
  129. data/spec/dummy/tmp/cache/380/600/shard%2F3067 +1 -0
  130. data/spec/dummy/tmp/cache/380/600/shard%2F3148 +0 -0
  131. data/spec/dummy/tmp/cache/380/610/shard%2F2509 +1 -0
  132. data/spec/dummy/tmp/cache/380/610/shard%2F3076 +1 -0
  133. data/spec/dummy/tmp/cache/380/630/shard%2F2527 +1 -0
  134. data/spec/dummy/tmp/cache/380/640/shard%2F2374 +1 -0
  135. data/spec/dummy/tmp/cache/380/640/shard%2F2536 +0 -0
  136. data/spec/dummy/tmp/cache/380/660/shard%2F2473 +1 -0
  137. data/spec/dummy/tmp/cache/380/670/shard%2F2482 +1 -0
  138. data/spec/dummy/tmp/cache/380/670/shard%2F2806 +2 -0
  139. data/spec/dummy/tmp/cache/{2E9/8A0/shard%2F9 → 380/680/shard%2F2653} +1 -1
  140. data/spec/dummy/tmp/cache/380/6A0/shard%2F2671 +1 -0
  141. data/spec/dummy/tmp/cache/380/6A0/shard%2F2752 +2 -0
  142. data/spec/dummy/tmp/cache/380/6B0/shard%2F2761 +2 -0
  143. data/spec/dummy/tmp/cache/381/600/shard%2F2249 +1 -0
  144. data/spec/dummy/tmp/cache/381/610/shard%2F3149 +0 -0
  145. data/spec/dummy/tmp/cache/381/640/shard%2F2609 +2 -0
  146. data/spec/dummy/tmp/cache/381/640/shard%2F3095 +0 -0
  147. data/spec/dummy/tmp/cache/381/660/shard%2F2627 +2 -0
  148. data/spec/dummy/tmp/cache/381/670/shard%2F2636 +1 -0
  149. data/spec/dummy/tmp/cache/381/680/shard%2F2807 +2 -0
  150. data/spec/dummy/tmp/cache/381/690/shard%2F2573 +1 -0
  151. data/spec/dummy/tmp/cache/381/6B0/shard%2F2591 +2 -0
  152. data/spec/dummy/tmp/cache/381/6B0/shard%2F2753 +2 -0
  153. data/spec/dummy/tmp/cache/381/6F0/shard%2F2870 +1 -0
  154. data/spec/dummy/tmp/cache/382/620/shard%2F3069 +1 -0
  155. data/spec/dummy/tmp/cache/382/640/shard%2F2196 +1 -0
  156. data/spec/dummy/tmp/cache/382/650/shard%2F3096 +0 -0
  157. data/spec/dummy/tmp/cache/382/660/shard%2F2376 +1 -0
  158. data/spec/dummy/tmp/cache/382/670/shard%2F2628 +2 -0
  159. data/spec/dummy/tmp/cache/382/6A0/shard%2F2493 +1 -0
  160. data/spec/dummy/tmp/cache/382/6C0/shard%2F2592 +2 -0
  161. data/spec/dummy/tmp/cache/382/6C0/shard%2F2835 +1 -0
  162. data/spec/dummy/tmp/cache/383/650/shard%2F2197 +1 -0
  163. data/spec/dummy/tmp/cache/383/670/shard%2F2377 +1 -0
  164. data/spec/dummy/tmp/cache/383/670/shard%2F2458 +1 -0
  165. data/spec/dummy/tmp/cache/383/680/shard%2F2548 +1 -0
  166. data/spec/dummy/tmp/cache/383/690/shard%2F2476 +1 -0
  167. data/spec/dummy/tmp/cache/383/6A0/shard%2F2809 +2 -0
  168. data/spec/dummy/tmp/cache/383/6C0/shard%2F2746 +1 -0
  169. data/spec/dummy/tmp/cache/383/6D0/shard%2F2755 +2 -0
  170. data/spec/dummy/tmp/cache/383/6E0/shard%2F2764 +2 -0
  171. data/spec/dummy/tmp/cache/383/700/shard%2F2782 +2 -0
  172. data/spec/dummy/tmp/cache/383/700/shard%2F2863 +1 -0
  173. data/spec/dummy/tmp/cache/384/6A0/shard%2F2477 +1 -0
  174. data/spec/dummy/tmp/cache/384/6E0/shard%2F2594 +2 -0
  175. data/spec/dummy/tmp/cache/384/6E0/shard%2F2756 +2 -0
  176. data/spec/dummy/tmp/cache/384/6F0/shard%2F2684 +0 -0
  177. data/spec/dummy/tmp/cache/384/6F0/shard%2F2765 +2 -0
  178. data/spec/dummy/tmp/cache/384/710/shard%2F2864 +1 -0
  179. data/spec/dummy/tmp/cache/384/720/shard%2F2873 +1 -0
  180. data/spec/dummy/tmp/cache/385/670/shard%2F2199 +1 -0
  181. data/spec/dummy/tmp/cache/385/690/shard%2F2379 +1 -0
  182. data/spec/dummy/tmp/cache/385/6F0/shard%2F2595 +2 -0
  183. data/spec/dummy/tmp/cache/385/710/shard%2F2694 +1 -0
  184. data/spec/dummy/tmp/cache/386/6C0/shard%2F2479 +1 -0
  185. data/spec/dummy/tmp/cache/386/700/shard%2F2758 +2 -0
  186. data/spec/dummy/tmp/cache/386/720/shard%2F2776 +2 -0
  187. data/spec/dummy/tmp/cache/386/730/shard%2F2866 +1 -0
  188. data/spec/dummy/tmp/cache/387/710/shard%2F2597 +2 -0
  189. data/spec/dummy/tmp/cache/388/720/shard%2F2598 +2 -0
  190. data/spec/dummy/tmp/cache/389/750/shard%2F2779 +2 -0
  191. data/spec/dummy/tmp/cache/389/760/shard%2F2869 +1 -0
  192. data/spec/dummy/tmp/cache/3A2/E80/shard%2F10010 +1 -0
  193. data/spec/dummy/tmp/cache/3A8/F70/shard%2F12203 +1 -0
  194. data/spec/dummy/tmp/cache/3A8/F80/shard%2F12212 +1 -0
  195. data/spec/dummy/tmp/cache/3A9/F50/shard%2F12015 +1 -0
  196. data/spec/dummy/tmp/cache/3A9/FC0/shard%2F12240 +1 -0
  197. data/spec/dummy/tmp/cache/3A9/FF0/shard%2F12510 +1 -0
  198. data/spec/dummy/tmp/cache/3AA/F10/shard%2F10027 +1 -0
  199. data/spec/dummy/tmp/cache/3AA/F80/shard%2F13006 +1 -0
  200. data/spec/dummy/tmp/cache/3AA/FB0/shard%2F12223 +1 -0
  201. data/spec/dummy/tmp/cache/3AA/FD0/shard%2F13132 +1 -0
  202. data/spec/dummy/tmp/cache/3AB/F70/shard%2F10073 +1 -0
  203. data/spec/dummy/tmp/cache/3AB/F70/shard%2F10154 +1 -0
  204. data/spec/dummy/tmp/cache/3AB/FC0/shard%2F13115 +1 -0
  205. data/spec/dummy/tmp/cache/3AC/050/shard%2F12702 +1 -0
  206. data/spec/dummy/tmp/cache/3AC/FB0/shard%2F13017 +1 -0
  207. data/spec/dummy/tmp/cache/3AD/010/shard%2F12253 +1 -0
  208. data/spec/dummy/tmp/cache/3AD/020/shard%2F12262 +1 -0
  209. data/spec/dummy/tmp/cache/3AE/040/shard%2F12191 +1 -0
  210. data/spec/dummy/tmp/cache/3AF/060/shard%2F12525 +1 -0
  211. data/spec/dummy/tmp/cache/3AF/0B0/shard%2F12651 +1 -0
  212. data/spec/dummy/tmp/cache/3B0/010/shard%2F12229 +1 -0
  213. data/spec/dummy/tmp/cache/3B0/0A0/shard%2F12634 +1 -0
  214. data/spec/dummy/tmp/cache/3B1/090/shard%2F12536 +1 -0
  215. data/spec/dummy/tmp/cache/3B1/0C0/shard%2F12563 +1 -0
  216. data/spec/dummy/tmp/cache/3B1/0D0/shard%2F12491 +1 -0
  217. data/spec/dummy/tmp/cache/3B1/0F0/shard%2F12833 +1 -0
  218. data/spec/dummy/tmp/cache/3B2/000/shard%2F10179 +1 -0
  219. data/spec/dummy/tmp/cache/3B2/060/shard%2F13149 +1 -0
  220. data/spec/dummy/tmp/cache/3B2/140/shard%2F12870 +1 -0
  221. data/spec/dummy/tmp/cache/3B3/0A0/shard%2F13096 +1 -0
  222. data/spec/dummy/tmp/cache/3B3/0F0/shard%2F12736 +1 -0
  223. data/spec/dummy/tmp/cache/3B4/090/shard%2F13079 +1 -0
  224. data/spec/dummy/tmp/cache/3B4/0A0/shard%2F12197 +1 -0
  225. data/spec/dummy/tmp/cache/3B4/0E0/shard%2F12719 +1 -0
  226. data/spec/dummy/tmp/cache/3B5/160/shard%2F12864 +1 -0
  227. data/spec/dummy/tmp/cache/3B6/150/shard%2F12685 +1 -0
  228. data/spec/dummy/tmp/cache/3B7/140/shard%2F12668 +1 -0
  229. data/spec/dummy/tmp/cache/3B9/150/shard%2F12499 +1 -0
  230. data/spec/lib/active_record/query_cache_spec.rb +50 -30
  231. data/spec/lib/database_server_spec.rb +6 -2
  232. metadata +453 -50
  233. data/spec/dummy/tmp/cache/317/9E0/shard%2F61 +0 -0
  234. data/spec/dummy/tmp/cache/318/9F0/shard%2F62 +0 -0
  235. data/spec/dummy/tmp/cache/31A/A10/shard%2F64 +0 -0
  236. data/spec/dummy/tmp/cache/31A/A20/shard%2F73 +0 -0
  237. data/spec/dummy/tmp/cache/31B/A20/shard%2F65 +0 -0
  238. data/spec/dummy/tmp/cache/31B/A30/shard%2F74 +0 -0
  239. data/spec/dummy/tmp/cache/31D/A30/shard%2F58 +0 -0
  240. data/spec/dummy/tmp/cache/31D/A40/shard%2F67 +0 -0
  241. data/spec/dummy/tmp/cache/31E/A40/shard%2F59 +0 -0
  242. data/spec/dummy/tmp/cache/31E/A50/shard%2F68 +0 -0
  243. data/spec/dummy/tmp/cache/320/A80/shard%2F79 +0 -0
  244. data/spec/dummy/tmp/cache/344/D70/shard%2F103 +0 -0
  245. data/spec/dummy/tmp/cache/345/D80/shard%2F104 +0 -0
  246. data/spec/dummy/tmp/cache/349/DE0/shard%2F126 +0 -0
  247. data/spec/dummy/tmp/cache/34A/DF0/shard%2F127 +0 -0
  248. data/spec/dummy/tmp/cache/34B/E00/shard%2F128 +0 -1
  249. data/spec/dummy/tmp/cache/34B/E10/shard%2F137 +0 -0
  250. data/spec/dummy/tmp/cache/34C/E20/shard%2F138 +0 -0
  251. data/spec/dummy/tmp/cache/34C/E80/shard%2F192 +0 -0
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGY5N2I3ZDdiMzViMzAzYmRjOTQxMGFjMmNmNjIwYzhjNTNiMDM2NQ==
4
+ NTc5NGVlNTU2ODI2YTQ3NjY4OTBhOGZiNTZjN2MyMWNjYjY5YmNhZg==
5
5
  data.tar.gz: !binary |-
6
- NTc3ZGM5YTY5NTI3MTc4ODNiMjdlNDRmM2QwNjU5N2JmNzA2ZDg4Nw==
6
+ ZGNkZjQ3YWQ0Njg5ZTJhMDQ5ZTVmMWIyZGVhZDJhMTQ5MzE4ZDNlZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2RjZDFiMzVhZDgyNzFhMTg2YjBmY2M2OTY0Nzg2OTc0NjkxZjkzOTdjYzU4
10
- ZmE0OGY2YmI0OGUwM2FhOWFhYjFjMDk3MGI5OThmZDZlZWNiMWZjMTEzMDZl
11
- ZDM4MmIyMTJhNDZlZTk1NDg3ODhiZjczMDYxNTQ1ZDE1NDY4ODU=
9
+ ODY5NDM1MTFiYTFkMWM5MWYzMDJiZjFkNjY1YWNjZDg3MjFmZjM4YTM3ZjEx
10
+ MzA4MDJjMjJkMjViOTQ5ZWZlMGYyOWUwMmRmYjI2MzNhYjE3ZmJhODk4ZGJh
11
+ ODhlYzllMmQxYzVhYjc2NTE4MjYxNmIzZGM2N2M0YWU2NmZkMzg=
12
12
  data.tar.gz: !binary |-
13
- OTc4N2ZiNjNlY2YzMjk5NTMxN2ZhZWRiNzJmZDY0NWU0YmFmNGU0NzRlYmRi
14
- YmRlMDcyMzY5MTU4ZWI3YWEwMDM1YTc1ZDZhYTAwMzU5OTY4MDMxZTNjYjE4
15
- YWFlNGU5Y2ZlMzBhZGYwZDRjNjY3OTI5YThkZjc5NWFlNGQyMzA=
13
+ YzlkM2FlYmY5MTNlMzUzMDBhYjRkZGU5MGY5NWZjMzRiMGYyYzhlNDAyMmM0
14
+ MWE1M2RkZmUyNWRjNDdlN2U5YTY3NTgxNWY4YWI4Y2M3NGZjMmUxMGNjODFh
15
+ NTA1MGIwNTdlZTBhY2U1MzM1ZmU5ZDBiYjc1ZmM2MTE2MDdjZmY=
File without changes
@@ -3,10 +3,7 @@ module Switchman
3
3
  module ConnectionPool
4
4
  def self.included(klass)
5
5
  klass.alias_method_chain(:checkout_new_connection, :sharding)
6
- klass.send(:remove_method, :connection)
7
- klass.send(:remove_method, :active_connection?)
8
- klass.send(:remove_method, :release_connection)
9
- klass.send(:remove_method, :clear_stale_cached_connections!)
6
+ klass.alias_method_chain(:connection, :sharding)
10
7
  end
11
8
 
12
9
  attr_writer :shard
@@ -32,70 +29,12 @@ module Switchman
32
29
  conn
33
30
  end
34
31
 
35
- def connection
36
- conns = synchronize { @reserved_connections[current_connection_id] ||= [] }
37
- conn = conns.find { |conn| !conn.open_transactions || conn.shard == self.shard || conn.adapter_name == 'PostgreSQL' }
38
- unless conn
39
- conn = checkout
40
- yield conn if block_given?
41
- conns << conn
42
- end
32
+ def connection_with_sharding
33
+ conn = connection_without_sharding
43
34
  switch_database(conn) if conn.shard != self.shard
44
35
  conn
45
36
  end
46
37
 
47
- # Is there an open connection that is being used for the current thread?
48
- def active_connection?
49
- synchronize do
50
- @reserved_connections.fetch(current_connection_id) {
51
- return false
52
- }.any? { |conn| conn.in_use? }
53
- end
54
- end
55
-
56
- def release_connection
57
- conns = synchronize { @reserved_connections.delete(current_connection_id) }
58
- conns.each { |conn| checkin conn } if conns
59
- end
60
-
61
- def clear_stale_cached_connections!
62
- keys = @reserved_connections.keys - Thread.list.find_all { |t|
63
- t.alive?
64
- }.map { |thread| thread.object_id }
65
- keys.each do |key|
66
- conns = @reserved_connections[key]
67
- conns.each do |conn|
68
- ::ActiveSupport::Deprecation.warn(<<-eowarn) if conn.in_use?
69
- Database connections will not be closed automatically, please close your
70
- database connection at the end of the thread by calling `close` on your
71
- connection. For example: ActiveRecord::Base.connection.close
72
- eowarn
73
- checkin conn
74
- end
75
- @reserved_connections.delete(key)
76
- end
77
- end
78
-
79
- def release(conn)
80
- synchronize do
81
- thread_id = nil
82
-
83
- if @reserved_connections[current_connection_id].include?(conn)
84
- thread_id = current_connection_id
85
- @reserved_connections[thread_id].delete(conn)
86
- else
87
- thread_id = @reserved_connections.keys.find { |k|
88
- @reserved_connections[k].include?(conn)
89
- }
90
- if thread_id
91
- @reserved_connections[thread_id].delete(conn)
92
- end
93
- end
94
-
95
- @reserved_connections.delete thread_id if thread_id && @reserved_connections[thread_id].empty?
96
- end
97
- end
98
-
99
38
  def switch_database(conn)
100
39
  if !@schemas && conn.adapter_name == 'PostgreSQL' && !self.shard.database_server.config[:shard_name]
101
40
  @schemas = conn.schemas
@@ -62,7 +62,7 @@ module Switchman
62
62
  end
63
63
 
64
64
  %w{update_all delete_all}.each do |method|
65
- class_eval <<-RUBY
65
+ class_eval <<-RUBY, __FILE__, __LINE__ + 1
66
66
  def #{method}_with_deshackles(*args)
67
67
  db = Shard.current(shard_category).database_server
68
68
  if ::Shackles.environment != db.shackles_environment
@@ -2,6 +2,7 @@ module Switchman
2
2
  module ConnectionError
3
3
  def self.===(other)
4
4
  return true if defined?(PG::Error) && PG::Error === other
5
+ return true if defined?(Mysql2::Error) && Mysql2::Error === other
5
6
  false
6
7
  end
7
8
  end
@@ -3,6 +3,9 @@ module Switchman
3
3
  isolate_namespace Switchman
4
4
 
5
5
  initializer 'switchman.initialize_cache', :before => 'initialize_cache' do
6
+ require "switchman/active_support/cache"
7
+ ::ActiveSupport::Cache::Store.send(:include, ActiveSupport::Cache::Store)
8
+
6
9
  # if we haven't already setup our cache map out-of-band, set it up from
7
10
  # config.cache_store now. behaves similarly to Rails' default
8
11
  # initialize_cache initializer, but for each value in the map, rather
@@ -46,11 +49,13 @@ module Switchman
46
49
  else
47
50
  ::Rails.cache = Switchman.config[:cache_map][::Rails.env]
48
51
  end
52
+
53
+ require "switchman/rails"
54
+ ::Rails.send(:include, Rails)
49
55
  end
50
56
 
51
57
  initializer 'switchman.extend_ar', :before => "active_record.initialize_database" do
52
58
  ::ActiveSupport.on_load(:active_record) do
53
- require "switchman/active_support/cache"
54
59
  require "switchman/active_record/abstract_adapter"
55
60
  require "switchman/active_record/association"
56
61
  require "switchman/active_record/attribute_methods"
@@ -64,9 +69,7 @@ module Switchman
64
69
  require "switchman/active_record/query_methods"
65
70
  require "switchman/active_record/relation"
66
71
  require "switchman/active_record/spawn_methods"
67
- require "switchman/rails"
68
72
 
69
- ::ActiveSupport::Cache::Store.send(:include, ActiveSupport::Cache::Store)
70
73
  include ActiveRecord::Base
71
74
  include ActiveRecord::AttributeMethods
72
75
  ::ActiveRecord::Associations::Association.send(:include, ActiveRecord::Association)
@@ -91,7 +94,6 @@ module Switchman
91
94
  ::ActiveRecord::Relation.send(:include, ActiveRecord::QueryMethods)
92
95
  ::ActiveRecord::Relation.send(:include, ActiveRecord::Relation)
93
96
  ::ActiveRecord::Relation.send(:include, ActiveRecord::SpawnMethods)
94
- ::Rails.send(:include, Rails)
95
97
  end
96
98
  end
97
99
 
@@ -104,6 +106,7 @@ module Switchman
104
106
  initializer 'switchman.extend_connection_adapters', :after => "active_record.initialize_database" do
105
107
  ::ActiveSupport.on_load(:active_record) do
106
108
  ::ActiveRecord::ConnectionAdapters::AbstractAdapter.descendants.each do |klass|
109
+ next if klass.instance_methods.include?(:add_column_with_foreign_key_check)
107
110
  klass.class_eval do
108
111
  def add_column_with_foreign_key_check(table, name, type, options = {})
109
112
  Switchman::Engine.foreign_key_check(name, type, options)
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -15,3 +15,13 @@ test:
15
15
  adapter: postgresql
16
16
  database: switchman_test
17
17
  port: 15432
18
+
19
+ testm:
20
+ adapter: mysql2
21
+ database: switchman_test
22
+ socket: /opt/boxen/data/mysql/socket
23
+ username: root
24
+
25
+ tests:
26
+ adapter: sqlite3
27
+ database: db/switchman_test.sqlite3
@@ -9,56 +9,59 @@
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 to check this file into your version control system.
12
+ # It's strongly recommended that you 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
- create_table "appendages", :force => true do |t|
17
- t.integer "user_id", :limit => 8
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
18
21
  t.integer "value"
19
- t.datetime "created_at", :null => false
20
- t.datetime "updated_at", :null => false
22
+ t.datetime "created_at", null: false
23
+ t.datetime "updated_at", null: false
21
24
  end
22
25
 
23
- create_table "digits", :force => true do |t|
24
- t.integer "appendage_id", :limit => 8
26
+ create_table "digits", force: true do |t|
27
+ t.integer "appendage_id", limit: 8
25
28
  t.integer "value"
26
- t.datetime "created_at", :null => false
27
- t.datetime "updated_at", :null => false
29
+ t.datetime "created_at", null: false
30
+ t.datetime "updated_at", null: false
28
31
  end
29
32
 
30
- create_table "features", :force => true do |t|
31
- t.integer "owner_id", :limit => 8
33
+ create_table "features", force: true do |t|
34
+ t.integer "owner_id", limit: 8
32
35
  t.string "owner_type"
33
36
  t.integer "value"
34
- t.datetime "created_at", :null => false
35
- t.datetime "updated_at", :null => false
37
+ t.datetime "created_at", null: false
38
+ t.datetime "updated_at", null: false
36
39
  end
37
40
 
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
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
42
45
  end
43
46
 
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
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
48
51
  end
49
52
 
50
- create_table "switchman_shards", :force => true do |t|
53
+ create_table "switchman_shards", force: true do |t|
51
54
  t.string "name"
52
55
  t.string "database_server_id"
53
- t.boolean "default", :default => false, :null => false
56
+ t.boolean "default", default: false, null: false
54
57
  end
55
58
 
56
- create_table "users", :force => true do |t|
59
+ create_table "users", force: true do |t|
57
60
  t.string "name"
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
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
62
65
  end
63
66
 
64
67
  end
@@ -637,3 +637,26 @@ Migrating to CreateDigits (20131022202028)
637
637
  Migrating to CreateFeatures (20131206172923)
638
638
  Migrating to AddParentIdToUsers (20140123154135)
639
639
   (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1 master]
640
+ Connecting to database specified by database.yml
641
+  (7.6ms) SELECT * FROM unnest(current_schemas(false))
642
+ Switchman::Shard Load (2.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
643
+  (0.2ms) SELECT * FROM unnest(current_schemas(false))
644
+ Switchman::Shard Load (1.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'testp' AND "switchman_shards"."name" IS NULL LIMIT 1
645
+  (0.6ms) SELECT * FROM unnest(current_schemas(false)) [shard master]
646
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'testm' AND "switchman_shards"."name" IS NULL LIMIT 1
647
+ Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1
648
+  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1 master]
649
+ Migrating to CreateSwitchmanShards (20130328212039)
650
+ Migrating to CreateDefaultShard (20130328224244)
651
+ Migrating to CreateUsers (20130403132607)
652
+ Migrating to CreateAppendages (20130411202442)
653
+ Migrating to CreateMirrorUsers (20130411202551)
654
+ Migrating to CreateDigits (20131022202028)
655
+ Migrating to CreateFeatures (20131206172923)
656
+ Migrating to AddParentIdToUsers (20140123154135)
657
+ Migrating to CreateRoots (20140219183820)
658
+  (0.1ms) BEGIN [shard 1 master]
659
+  (22.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1 master]
660
+  (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1 master]
661
+  (0.6ms) COMMIT [shard 1 master]
662
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1 master]
@@ -1,39522 +1,492 @@
1
- Connecting to database specified by database.yml
2
-  (0.4ms) SELECT * FROM unnest(current_schemas(false))
3
- Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
4
- SQL (7.3ms) DELETE FROM "switchman_shards"
5
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
6
-  (0.1ms) BEGIN
7
- Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
8
- SQL (0.9ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]
9
-  (0.3ms) COMMIT
10
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
11
- Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1502 master]
12
-  (0.1ms) BEGIN [shard 1502 master]
13
- 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 1502 master]
14
-  (0.4ms) CREATE SCHEMA switchman_test_shard_1503 [shard 1503 deploy]
15
-  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1503 deploy]
16
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1503 deploy]
17
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1503 deploy]
18
- Migrating to CreateUsers (20130403132607)
19
-  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1503 deploy]
20
-  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1503 deploy]
21
- Migrating to CreateAppendages (20130411202442)
22
-  (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 1503 deploy]
23
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1503 deploy]
24
- Migrating to CreateMirrorUsers (20130411202551)
25
-  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1503 deploy]
26
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1503 deploy]
27
- Migrating to CreateDigits (20131022202028)
28
-  (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 1503 deploy]
29
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1503 deploy]
30
- Migrating to CreateFeatures (20131206172923)
31
-  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1503 deploy]
32
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1503 deploy]
33
- Migrating to AddParentIdToUsers (20140123154135)
34
-  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1503 deploy]
35
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1503 deploy]
36
- Migrating to CreateRoots (20140219183820)
37
-  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1503 deploy]
38
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1503 deploy]
39
-  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1503' WHERE "switchman_shards"."id" = 1503 [shard 1502 master]
40
-  (0.7ms) COMMIT [shard 1502 master]
41
- Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1502 master]
42
-  (0.1ms) BEGIN [shard 1502 master]
43
- 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 1502 master]
44
-  (0.2ms) COMMIT [shard 1502 master]
45
-  (1.9ms) CREATE SCHEMA switchman_test_shard_1504 [shard 1504 deploy]
46
-  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1504 deploy]
47
-  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1504 deploy]
48
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1504 deploy]
1
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
2
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1
3
+  (0.4ms) SELECT * FROM unnest(current_schemas(false)) [shard master]
4
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'testm' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1
5
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'tests' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1
6
+  (0.2ms) BEGIN [shard 2960 master]
7
+  (0.1ms) ROLLBACK [shard 2960 master]
8
+  (0.1ms) BEGIN [shard 2960 master]
9
+  (0.1ms) ROLLBACK [shard 2960 master]
10
+  (0.1ms) BEGIN [shard 2960 master]
11
+  (0.1ms) ROLLBACK [shard 2960 master]
12
+  (0.1ms) BEGIN [shard 2960 master]
13
+  (0.1ms) ROLLBACK [shard 2960 master]
14
+  (0.1ms) BEGIN [shard 2960 master]
15
+  (0.1ms) ROLLBACK [shard 2960 master]
16
+  (0.1ms) BEGIN [shard 2960 master]
17
+  (0.1ms) ROLLBACK [shard 2960 master]
18
+  (0.1ms) BEGIN [shard 2960 master]
19
+  (0.1ms) ROLLBACK [shard 2960 master]
20
+  (0.1ms) BEGIN [shard 2960 master]
21
+  (0.1ms) ROLLBACK [shard 2960 master]
22
+  (0.1ms) BEGIN [shard 2960 master]
23
+  (0.1ms) ROLLBACK [shard 2960 master]
24
+  (0.1ms) BEGIN [shard 2960 master]
25
+  (0.1ms) ROLLBACK [shard 2960 master]
26
+ SQL (6.9ms) DELETE FROM "switchman_shards" [shard 2960 master]
27
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2960 master]
28
+  (0.1ms) BEGIN [shard 2960 master]
29
+ Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2960 master]
30
+ SQL (0.9ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]] [shard 2960 master]
31
+  (0.3ms) COMMIT [shard 2960 master]
32
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2960 master]
33
+  (0.2ms) SELECT * FROM unnest(current_schemas(false)) [shard 2960 master]
34
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 2965 master]
35
+  (0.1ms) BEGIN [shard 2965 master]
36
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 2965 master]
37
+  (0.4ms) CREATE SCHEMA switchman_test_shard_2966 [shard 2966 deploy]
38
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 2966 deploy]
39
+ SQL (0.6ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 2966 [["name", "switchman_test_shard_2966"]] [shard 2965 master]
40
+  (0.5ms) COMMIT [shard 2965 master]
41
+ Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 2965 master]
42
+  (0.2ms) BEGIN [shard 2965 master]
43
+ SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 2965 master]
44
+  (0.4ms) COMMIT [shard 2965 master]
45
+  (0.9ms) CREATE SCHEMA switchman_test_shard_2967 [shard 2967 deploy]
46
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 2967 deploy]
47
+  (0.1ms) BEGIN [shard 2965 master]
48
+ SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 2967 [["name", "switchman_test_shard_2967"]] [shard 2965 master]
49
+  (6.4ms) COMMIT [shard 2965 master]
50
+  (0.1ms) BEGIN [shard 2965 master]
51
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2965 master]
52
+ Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 2966]] [shard 2965 master]
53
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 2967]] [shard 2965 master]
54
+  (0.1ms) BEGIN [shard 2967 master]
55
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 2965 master]
56
+  (0.1ms) SAVEPOINT active_record_1 [shard 2965 master]
57
+ SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 2965 master]
58
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2965 master]
59
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 2968 deploy]
60
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 2968 deploy]
61
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 2968 deploy]
49
62
  Migrating to CreateUsers (20130403132607)
50
-  (0.1ms) BEGIN [shard 1504 deploy]
51
-  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1504 deploy]
52
-  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1504 deploy]
53
-  (0.3ms) COMMIT [shard 1504 deploy]
63
+  (0.1ms) begin transaction [shard 2968 deploy]
64
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 2968 deploy]
65
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 2968 deploy]
66
+  (0.7ms) commit transaction [shard 2968 deploy]
54
67
  Migrating to CreateAppendages (20130411202442)
55
-  (0.1ms) BEGIN [shard 1504 deploy]
56
-  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1504 deploy]
57
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1504 deploy]
58
-  (0.3ms) COMMIT [shard 1504 deploy]
68
+  (0.2ms) begin transaction [shard 2968 deploy]
69
+  (0.6ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 2968 deploy]
70
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 2968 deploy]
71
+  (0.6ms) commit transaction [shard 2968 deploy]
59
72
  Migrating to CreateMirrorUsers (20130411202551)
60
-  (0.1ms) BEGIN [shard 1504 deploy]
61
-  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1504 deploy]
62
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1504 deploy]
63
-  (0.3ms) COMMIT [shard 1504 deploy]
73
+  (0.1ms) begin transaction [shard 2968 deploy]
74
+  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 2968 deploy]
75
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 2968 deploy]
76
+  (0.8ms) commit transaction [shard 2968 deploy]
64
77
  Migrating to CreateDigits (20131022202028)
65
-  (0.1ms) BEGIN [shard 1504 deploy]
66
-  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1504 deploy]
67
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1504 deploy]
68
-  (0.4ms) COMMIT [shard 1504 deploy]
78
+  (0.1ms) begin transaction [shard 2968 deploy]
79
+  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 2968 deploy]
80
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 2968 deploy]
81
+  (0.7ms) commit transaction [shard 2968 deploy]
69
82
  Migrating to CreateFeatures (20131206172923)
70
-  (0.1ms) BEGIN [shard 1504 deploy]
71
-  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1504 deploy]
72
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1504 deploy]
73
-  (0.3ms) COMMIT [shard 1504 deploy]
83
+  (0.1ms) begin transaction [shard 2968 deploy]
84
+  (0.4ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 2968 deploy]
85
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 2968 deploy]
86
+  (1.0ms) commit transaction [shard 2968 deploy]
74
87
  Migrating to AddParentIdToUsers (20140123154135)
75
-  (0.1ms) BEGIN [shard 1504 deploy]
76
-  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1504 deploy]
77
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1504 deploy]
78
-  (0.2ms) COMMIT [shard 1504 deploy]
88
+  (0.1ms) begin transaction [shard 2968 deploy]
89
+  (0.4ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 2968 deploy]
90
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 2968 deploy]
91
+  (0.8ms) commit transaction [shard 2968 deploy]
79
92
  Migrating to CreateRoots (20140219183820)
80
-  (0.0ms) BEGIN [shard 1504 deploy]
81
-  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1504 deploy]
82
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1504 deploy]
83
-  (0.3ms) COMMIT [shard 1504 deploy]
84
-  (0.1ms) BEGIN [shard 1502 master]
85
-  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1504' WHERE "switchman_shards"."id" = 1504 [shard 1502 master]
86
-  (0.2ms) COMMIT [shard 1502 master]
87
-  (0.1ms) BEGIN [shard 1502 master]
88
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
89
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
90
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
91
-  (0.1ms) BEGIN [shard 1504 master]
92
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
93
- SQL (3.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00]] [shard 1503 master]
94
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
95
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
96
- SQL (1.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00]] [shard 1504 master]
97
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
98
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
99
- SQL (2.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1503 master]
100
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
101
-  (0.1ms) ROLLBACK [shard 1504 master]
102
-  (0.1ms) ROLLBACK [shard 1503 master]
103
-  (0.0ms) BEGIN [shard 1502 master]
104
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
105
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
106
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
107
-  (0.1ms) BEGIN [shard 1504 master]
108
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
109
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00]] [shard 1503 master]
110
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
111
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
112
- SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00]] [shard 1504 master]
113
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
114
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
115
- SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 1503 master]
116
-  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
117
-  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master]
118
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
119
- SQL (2.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 1504 master]
120
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
121
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
122
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1504 LIMIT 1 [shard 1502 master]
123
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1503 LIMIT 1 [shard 1502 master]
124
-  (0.1ms) ROLLBACK [shard 1504 master]
125
-  (0.1ms) ROLLBACK [shard 1502 master]
126
-  (0.1ms) BEGIN [shard 1502 master]
127
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
128
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
129
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
130
-  (0.0ms) BEGIN [shard 1504 master]
131
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
132
- SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00]] [shard 1503 master]
133
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
134
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
135
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00]] [shard 1504 master]
136
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
137
-  (0.1ms) ROLLBACK [shard 1504 master]
138
-  (0.1ms) ROLLBACK [shard 1503 master]
139
-  (0.0ms) BEGIN [shard 1502 master]
140
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
141
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
142
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
143
-  (0.0ms) BEGIN [shard 1504 master]
144
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
145
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00]] [shard 1503 master]
146
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
147
-  (0.0ms) SAVEPOINT active_record_1 [shard 1504 master]
148
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00]] [shard 1504 master]
149
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
150
-  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master]
151
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 1503 master]
152
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
153
- Appendage Load (1.7ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4 AND "appendages"."id" = $1 LIMIT 1 [["id", 3]] [shard 1503 master]
154
- Appendage Load (1.9ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4 AND "appendages"."id" = $1 LIMIT 1 [["id", 3]] [shard 1504 master]
155
-  (0.1ms) ROLLBACK [shard 1504 master]
156
-  (0.1ms) ROLLBACK [shard 1502 master]
157
-  (0.1ms) BEGIN [shard 1502 master]
158
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
159
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
160
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
161
-  (0.0ms) BEGIN [shard 1504 master]
162
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
163
- SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00]] [shard 1503 master]
164
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
165
-  (0.0ms) SAVEPOINT active_record_1 [shard 1504 master]
166
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00]] [shard 1504 master]
167
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
168
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
169
- SQL (2.1ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["user_id", nil]] [shard 1503 master]
170
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
171
-  (0.1ms) ROLLBACK [shard 1504 master]
172
-  (0.1ms) ROLLBACK [shard 1503 master]
173
-  (0.1ms) BEGIN [shard 1502 master]
174
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
175
- Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
176
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
177
-  (0.0ms) BEGIN [shard 1504 master]
178
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
179
- SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00]] [shard 1503 master]
180
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
181
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
182
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00]] [shard 1504 master]
183
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
184
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
185
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1503 master]
186
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
187
-  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 6 [shard 1503 master]
188
- User Load (1.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 6]] [shard 1503 master]
189
-  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 6 [shard 1503 master]
190
-  (0.1ms) ROLLBACK [shard 1504 master]
191
-  (0.1ms) ROLLBACK [shard 1503 master]
192
-  (0.0ms) BEGIN [shard 1502 master]
193
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
194
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
195
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
196
-  (0.0ms) BEGIN [shard 1504 master]
197
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
198
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00]] [shard 1503 master]
199
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
200
-  (0.0ms) SAVEPOINT active_record_1 [shard 1504 master]
201
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00]] [shard 1504 master]
202
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
203
-  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master]
204
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 1503 master]
205
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
206
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
207
- SQL (2.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:22 UTC +00:00], ["value", nil]] [shard 1503 master]
208
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
209
- Digit Load (2.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 7 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1503 master]
210
-  (0.1ms) ROLLBACK [shard 1504 master]
211
-  (0.1ms) ROLLBACK [shard 1503 master]
212
-  (0.1ms) BEGIN [shard 1502 master]
213
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
214
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
215
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
216
-  (0.0ms) BEGIN [shard 1504 master]
217
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
218
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
219
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
220
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
221
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
222
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
223
-  (0.1ms) ROLLBACK [shard 1504 master]
224
-  (0.1ms) ROLLBACK [shard 1503 master]
225
-  (0.0ms) BEGIN [shard 1502 master]
226
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
227
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
228
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
229
-  (0.1ms) BEGIN [shard 1504 master]
230
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
231
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
232
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
233
-  (0.0ms) SAVEPOINT active_record_1 [shard 1504 master]
234
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
235
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
236
-  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master]
237
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 1503 master]
238
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
239
-  (0.1ms) ROLLBACK [shard 1504 master]
240
-  (0.1ms) ROLLBACK [shard 1503 master]
241
-  (0.1ms) BEGIN [shard 1502 master]
242
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
243
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
244
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
245
-  (0.0ms) BEGIN [shard 1504 master]
246
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
247
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
248
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
249
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
250
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
251
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
252
-  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master]
253
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 1503 master]
254
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
255
- Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 7]] [shard 1503 master]
256
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10 LIMIT 1 [shard 1503 master]
257
-  (0.1ms) ROLLBACK [shard 1504 master]
258
-  (0.1ms) ROLLBACK [shard 1503 master]
259
-  (0.0ms) BEGIN [shard 1502 master]
260
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
261
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
262
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
263
-  (0.0ms) BEGIN [shard 1504 master]
264
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
265
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
266
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
267
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
268
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
269
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
270
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
271
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
272
-  (0.1ms) ROLLBACK [shard 1504 master]
273
-  (0.1ms) ROLLBACK [shard 1503 master]
274
-  (0.0ms) BEGIN [shard 1502 master]
275
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
276
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
277
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
278
-  (0.1ms) BEGIN [shard 1504 master]
279
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
280
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
281
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
282
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
283
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
284
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
285
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
286
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1503 master]
287
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
288
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
289
- SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", 1]] [shard 1503 master]
290
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
291
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
292
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15030000000000012], ["value", nil]] [shard 1504 master]
293
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
294
-  (0.0ms) SAVEPOINT active_record_1 [shard 1504 master]
295
- SQL (2.0ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", 2]] [shard 1504 master]
296
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
297
- Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12 [shard 1503 master]
298
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 12]] [shard 1503 master]
299
- Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12 [shard 1503 master]
300
- Digit Load (1.7ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15030000000000012 [shard 1504 master]
301
-  (0.1ms) ROLLBACK [shard 1504 master]
302
-  (0.1ms) ROLLBACK [shard 1503 master]
303
-  (0.1ms) BEGIN [shard 1502 master]
304
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
305
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
306
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
307
-  (0.0ms) BEGIN [shard 1504 master]
308
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
309
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
310
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
311
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
312
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
313
-  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
314
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
315
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1503 master]
316
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
317
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
318
- SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", nil]] [shard 1503 master]
319
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
320
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
321
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15030000000000013], ["value", nil]] [shard 1504 master]
322
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
323
-  (0.0ms) SAVEPOINT active_record_1 [shard 1504 master]
324
- SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", 2]] [shard 1504 master]
325
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
326
-  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 13 AND "digits"."value" IS NULL [shard 1503 master]
327
-  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15030000000000013 AND "digits"."value" IS NULL [shard 1504 master]
328
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 13]] [shard 1503 master]
329
- Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 13 AND "digits"."value" IS NULL [shard 1503 master]
330
- Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15030000000000013 AND "digits"."value" IS NULL [shard 1504 master]
331
-  (0.1ms) ROLLBACK [shard 1504 master]
332
-  (0.1ms) ROLLBACK [shard 1503 master]
333
-  (0.0ms) BEGIN [shard 1502 master]
334
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
335
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
336
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
337
-  (0.0ms) BEGIN [shard 1504 master]
338
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 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", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
340
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
341
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 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", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
343
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
344
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
345
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1503 master]
346
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
347
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
348
- SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", nil]] [shard 1503 master]
349
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
350
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
351
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15030000000000014], ["value", nil]] [shard 1504 master]
352
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
353
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
354
- SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", 2]] [shard 1504 master]
355
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
356
- Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 14 AND "digits"."value" IS NULL [shard 1503 master]
357
- Digit Load (0.7ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15030000000000014 AND "digits"."value" IS NULL [shard 1504 master]
358
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 14]] [shard 1503 master]
359
- Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 14 AND "digits"."value" IS NULL [shard 1503 master]
360
- Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15030000000000014 AND "digits"."value" IS NULL [shard 1504 master]
361
-  (0.1ms) ROLLBACK [shard 1504 master]
362
-  (0.1ms) ROLLBACK [shard 1502 master]
363
-  (0.1ms) BEGIN [shard 1502 master]
364
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
365
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
366
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
367
-  (0.1ms) BEGIN [shard 1504 master]
368
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
369
- SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
370
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
371
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
372
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
373
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
374
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
375
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15], ["value", 1]] [shard 1503 master]
376
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
377
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
378
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15030000000000015], ["value", 2]] [shard 1504 master]
379
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
380
- Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15 [shard 1503 master]
381
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 1503 master]
382
- Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15 [shard 1503 master]
383
- Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15030000000000015 [shard 1504 master]
384
-  (0.2ms) ROLLBACK [shard 1504 master]
385
-  (0.2ms) ROLLBACK [shard 1503 master]
386
-  (0.1ms) BEGIN [shard 1502 master]
387
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
388
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
389
- Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
390
-  (0.1ms) BEGIN [shard 1504 master]
391
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
392
- SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
393
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
394
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
395
- SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
396
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
397
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
398
- SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 1503 master]
399
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
400
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
401
- SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", nil]] [shard 1503 master]
402
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
403
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
404
- SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", 1]] [shard 1503 master]
405
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
406
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
407
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15030000000000016], ["value", nil]] [shard 1504 master]
408
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
409
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
410
- SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", 2]] [shard 1504 master]
411
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
412
-  (0.9ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16 AND (digits.value IS NOT NULL) [shard 1503 master]
413
-  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15030000000000016 AND (digits.value IS NOT NULL) [shard 1504 master]
414
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 1503 master]
415
-  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16 AND (digits.value IS NOT NULL) [shard 1503 master]
416
-  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15030000000000016 AND (digits.value IS NOT NULL) [shard 1504 master]
417
-  (0.1ms) ROLLBACK [shard 1504 master]
418
-  (0.2ms) ROLLBACK [shard 1503 master]
419
-  (0.1ms) BEGIN [shard 1502 master]
420
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
421
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
422
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
423
-  (0.1ms) BEGIN [shard 1504 master]
424
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
425
- SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
426
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
427
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
428
- SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
429
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
430
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
431
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 17], ["value", 1]] [shard 1503 master]
432
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
433
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
434
- SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15030000000000017], ["value", nil]] [shard 1504 master]
435
-  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
436
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
437
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
438
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 17], ["value", 2]] [shard 1503 master]
439
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
440
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
441
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 1503 master]
442
-  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 17 AND (appendages.value IS NOT NULL) [shard 1503 master]
443
-  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 15030000000000017 AND (appendages.value IS NOT NULL) [shard 1504 master]
444
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 1503 master]
445
-  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 17 AND (appendages.value IS NOT NULL) [shard 1503 master]
446
-  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 15030000000000017 AND (appendages.value IS NOT NULL) [shard 1504 master]
447
-  (0.1ms) ROLLBACK [shard 1504 master]
448
-  (0.1ms) ROLLBACK [shard 1503 master]
449
-  (0.1ms) BEGIN [shard 1502 master]
450
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
451
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
452
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
453
-  (0.1ms) BEGIN [shard 1504 master]
454
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
455
- SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
456
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
457
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
458
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
459
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
460
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
461
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 1503 master]
462
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
463
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
464
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15030000000000018], ["value", nil]] [shard 1504 master]
465
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
466
- Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 18 AND "appendages"."value" IS NULL [shard 1503 master]
467
- Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15030000000000018 AND "appendages"."value" IS NULL [shard 1504 master]
468
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 1503 master]
469
- Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 18 AND "appendages"."value" IS NULL [shard 1503 master]
470
- Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15030000000000018 AND "appendages"."value" IS NULL [shard 1504 master]
471
-  (0.1ms) ROLLBACK [shard 1504 master]
472
-  (0.1ms) ROLLBACK [shard 1503 master]
473
-  (0.0ms) BEGIN [shard 1502 master]
474
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
475
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
476
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
477
-  (0.0ms) BEGIN [shard 1504 master]
478
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
479
- SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
480
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
481
-  (0.0ms) SAVEPOINT active_record_1 [shard 1504 master]
482
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
483
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
484
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
485
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15040000000000019], ["value", nil]] [shard 1503 master]
486
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
487
- Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 16]] [shard 1503 master]
488
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 19 LIMIT 1 [shard 1504 master]
489
-  (0.1ms) ROLLBACK [shard 1504 master]
490
-  (0.1ms) ROLLBACK [shard 1503 master]
491
-  (0.1ms) BEGIN [shard 1502 master]
492
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
493
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
494
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
495
-  (0.0ms) BEGIN [shard 1504 master]
496
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
497
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
498
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
499
-  (0.0ms) SAVEPOINT active_record_1 [shard 1504 master]
500
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
501
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
502
-  (0.0ms) SAVEPOINT active_record_1 [shard 1504 master]
503
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1504 master]
504
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
505
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
506
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 20 LIMIT 1 [shard 1503 master]
507
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 1503 master]
508
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
509
- Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [shard 1503 master]
510
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 20 LIMIT 1 [shard 1503 master]
511
-  (0.1ms) ROLLBACK [shard 1504 master]
512
-  (0.1ms) ROLLBACK [shard 1503 master]
513
-  (0.0ms) BEGIN [shard 1502 master]
514
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
515
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
516
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
517
-  (0.0ms) BEGIN [shard 1504 master]
518
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
519
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
520
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
521
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 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", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
523
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
524
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
525
- SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15030000000000021], ["value", nil]] [shard 1502 master]
526
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
527
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
528
- SQL (2.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 481], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", nil]] [shard 1502 master]
529
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
530
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
531
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15040000000000021], ["value", nil]] [shard 1503 master]
532
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
533
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
534
- SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15030000000000018], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", nil]] [shard 1502 master]
535
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
536
- Digit Load (2.4ms) SELECT "digits".* FROM "digits"  [shard 1502 master]
537
- Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (481) [shard 1502 master]
538
- Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (18) [shard 1503 master]
539
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 1503 master]
540
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 1504 master]
541
- SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 21 [shard 1503 master]
542
-  (0.2ms) ROLLBACK [shard 1504 master]
543
-  (0.1ms) ROLLBACK [shard 1503 master]
544
-  (0.0ms) BEGIN [shard 1502 master]
545
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
546
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
547
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
548
-  (0.0ms) BEGIN [shard 1504 master]
549
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
550
- SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
551
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
552
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
553
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
554
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
555
-  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master]
556
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 1503 master]
557
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
558
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
559
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15030000000000022], ["value", nil]] [shard 1504 master]
560
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
561
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
562
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15040000000000022], ["value", nil]] [shard 1503 master]
563
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
564
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1503 master]
565
- Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (22) [shard 1503 master]
566
- Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (15030000000000022) [shard 1504 master]
567
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1504 master]
568
- Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (22) [shard 1504 master]
569
- SQL (0.3ms) DELETE FROM "appendages" WHERE "appendages"."id" = 19 [shard 1503 master]
570
-  (0.1ms) ROLLBACK [shard 1504 master]
571
-  (0.1ms) ROLLBACK [shard 1503 master]
572
-  (0.1ms) BEGIN [shard 1502 master]
573
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
574
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
575
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
576
-  (0.1ms) BEGIN [shard 1504 master]
577
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
578
- SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
579
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
580
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
581
- SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
582
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
583
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
584
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15030000000000023], ["value", nil]] [shard 1502 master]
585
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
586
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
587
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15040000000000023], ["value", nil]] [shard 1502 master]
588
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
589
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
590
- SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1502 master]
591
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
592
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
593
- SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 887], ["value", nil]] [shard 1502 master]
594
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
595
- Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1502 master]
596
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (887) [shard 1502 master]
597
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1503 master]
598
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1504 master]
599
- Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" [shard 1502 master]
600
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (887) [shard 1502 master]
601
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1503 master]
602
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1504 master]
603
- SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 23 [shard 1503 master]
604
-  (0.1ms) ROLLBACK [shard 1504 master]
605
-  (0.1ms) ROLLBACK [shard 1503 master]
606
-  (0.0ms) BEGIN [shard 1502 master]
607
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
608
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
609
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
610
-  (0.0ms) BEGIN [shard 1504 master]
611
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
612
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
613
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
614
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
615
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
616
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
617
-  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master]
618
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 1503 master]
619
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
620
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
621
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15030000000000024], ["value", nil]] [shard 1504 master]
622
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
623
-  (0.0ms) SAVEPOINT active_record_1 [shard 1504 master]
624
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15030000000000024], ["value", nil]] [shard 1504 master]
625
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
626
-  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master]
627
- SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", nil]] [shard 1503 master]
628
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
629
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
630
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
631
- SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", nil]] [shard 1504 master]
632
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
633
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
634
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
635
- SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15040000000000011], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", nil]] [shard 1503 master]
636
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
637
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
638
- SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15040000000000012], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", nil]] [shard 1503 master]
639
-  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
640
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
641
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15040000000000024], ["value", nil]] [shard 1503 master]
642
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
643
-  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master]
644
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
645
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 1504 master]
646
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
647
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
648
-  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master]
649
-  (0.0ms) SAVEPOINT active_record_1 [shard 1504 master]
650
- SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 1504 master]
651
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
652
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
653
-  (0.0ms) SAVEPOINT active_record_1 [shard 1504 master]
654
- SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15030000000000022], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", nil]] [shard 1504 master]
655
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
656
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
657
- SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15040000000000013], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", nil]] [shard 1503 master]
658
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
659
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
660
- SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15040000000000014], ["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", nil]] [shard 1503 master]
661
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
662
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1503 master]
663
- Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (24) [shard 1503 master]
664
- Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (15030000000000024) [shard 1504 master]
665
- Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (21, 15040000000000011) [shard 1503 master]
666
- Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (11, 12) [shard 1504 master]
667
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1504 master]
668
- Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (24) [shard 1504 master]
669
- Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (13) [shard 1504 master]
670
- Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (15040000000000014) [shard 1503 master]
671
- SQL (0.1ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1503 master]
672
-  (0.1ms) ROLLBACK [shard 1504 master]
673
-  (0.1ms) ROLLBACK [shard 1503 master]
674
-  (0.0ms) BEGIN [shard 1502 master]
675
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
676
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
677
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
678
-  (0.1ms) BEGIN [shard 1504 master]
679
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
680
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
681
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
682
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 master]
683
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
684
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
685
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
686
- SQL (2.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", 15040000000000025]] [shard 1502 master]
687
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
688
- Root Load (2.5ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 2]] [shard 1502 master]
689
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1 [shard 1504 master]
690
-  (0.1ms) ROLLBACK [shard 1504 master]
691
-  (0.1ms) ROLLBACK [shard 1502 master]
692
-  (0.0ms) BEGIN [shard 1502 master]
693
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
694
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
695
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
696
-  (0.0ms) BEGIN [shard 1504 master]
697
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 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", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
699
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
700
-  (0.1ms) SAVEPOINT active_record_1 [shard 1504 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", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
702
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
703
-  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master]
704
- SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1502 master]
705
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
706
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
707
- SQL (2.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["owner_id", 485], ["owner_type", "Appendage"], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", nil]] [shard 1502 master]
708
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
709
- Feature Load (2.5ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 26]] [shard 1502 master]
710
- Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 485 LIMIT 1 [shard 1502 master]
711
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
712
-  (0.2ms) UPDATE "features" SET "owner_id" = 15030000000000026, "owner_type" = 'User', "updated_at" = '2014-02-20 21:18:23.426417' WHERE "features"."id" = 26 [shard 1502 master]
713
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
714
- Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 26]] [shard 1502 master]
715
-  (0.1ms) ROLLBACK [shard 1504 master]
716
-  (0.1ms) ROLLBACK [shard 1502 master]
717
-  (0.0ms) BEGIN [shard 1502 master]
718
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
719
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
720
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
721
-  (0.0ms) BEGIN [shard 1504 master]
722
-  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master]
723
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1503 master]
724
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
725
-  (0.0ms) SAVEPOINT active_record_1 [shard 1504 master]
726
- SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00]] [shard 1504 master]
727
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
728
-  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]
729
- SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["owner_id", 27], ["owner_type", "User"], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", 1]] [shard 1503 master]
730
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]
731
-  (0.0ms) SAVEPOINT active_record_1 [shard 1504 master]
732
- SQL (2.1ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["owner_id", 15030000000000027], ["owner_type", "User"], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["value", 2]] [shard 1504 master]
733
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1504 master]
734
- Feature Load (1.8ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 27 AND "features"."owner_type" = 'User' [shard 1503 master]
735
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 1503 master]
736
- Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 27 AND "features"."owner_type" = 'User' [shard 1503 master]
737
- Feature Load (1.7ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 15030000000000027 AND "features"."owner_type" = 'User' [shard 1504 master]
738
-  (0.1ms) ROLLBACK [shard 1504 master]
739
-  (0.1ms) ROLLBACK [shard 1503 master]
740
-  (0.0ms) BEGIN [shard 1502 master]
741
- SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]] [shard 1502 master]
742
-  (0.3ms) COMMIT [shard 1502 master]
743
-  (0.1ms) BEGIN [shard 1502 master]
744
- SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1503]] [shard 1502 master]
745
-  (0.3ms) COMMIT [shard 1502 master]
746
-  (0.0ms) BEGIN [shard 1502 master]
747
- SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1504]] [shard 1502 master]
748
-  (0.2ms) COMMIT [shard 1502 master]
749
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
750
-  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" 
751
-  (0.0ms) BEGIN
752
- Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
753
- 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", 1502], ["name", nil]]
754
-  (0.2ms) COMMIT
755
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
756
-  (0.0ms) BEGIN [shard 1502 master]
757
- 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", 1503], ["name", "switchman_test_shard_1503"]] [shard 1502 master]
758
-  (0.3ms) COMMIT [shard 1502 master]
759
-  (0.0ms) BEGIN [shard 1502 master]
760
- 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", 1504], ["name", "switchman_test_shard_1504"]] [shard 1502 master]
761
-  (0.2ms) COMMIT [shard 1502 master]
762
-  (0.0ms) BEGIN [shard 1502 master]
763
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
764
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
765
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
766
-  (0.0ms) BEGIN [shard 1504 master]
767
-  (0.0ms) ROLLBACK [shard 1504 master]
768
-  (0.0ms) ROLLBACK [shard 1502 master]
769
-  (0.0ms) BEGIN [shard 1502 master]
770
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
771
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
772
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
773
-  (0.0ms) BEGIN [shard 1504 master]
774
-  (0.1ms) ROLLBACK [shard 1504 master]
775
-  (0.1ms) ROLLBACK [shard 1502 master]
776
-  (0.1ms) BEGIN [shard 1502 master]
777
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
778
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
779
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
780
-  (0.1ms) BEGIN [shard 1504 master]
781
-  (0.1ms) ROLLBACK [shard 1504 master]
782
-  (0.1ms) ROLLBACK [shard 1502 master]
783
-  (0.1ms) BEGIN [shard 1502 master]
784
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
785
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1502 master]
786
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1504]] [shard 1502 master]
787
-  (0.1ms) BEGIN [shard 1504 master]
788
-  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]
789
- SQL (3.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["updated_at", Thu, 20 Feb 2014 21:18:23 UTC +00:00], ["user_id", nil]] [shard 1502 master]
790
-  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]
791
- MirrorUser Load (2.7ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 22]] [shard 1502 master]
792
- MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 22]] [shard 1502 master]
793
- MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 22 LIMIT 1 [shard 1503 master]
794
-  (0.1ms) ROLLBACK [shard 1504 master]
795
-  (0.1ms) ROLLBACK [shard 1503 master]
796
-  (0.0ms) BEGIN [shard 1502 master]
797
- SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]] [shard 1502 master]
798
-  (0.2ms) COMMIT [shard 1502 master]
799
-  (0.0ms) BEGIN [shard 1502 master]
800
-  (0.0ms) COMMIT [shard 1502 master]
801
-  (0.0ms) BEGIN [shard 1502 master]
802
-  (0.0ms) COMMIT [shard 1502 master]
803
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
804
-  (0.3ms) SELECT COUNT(*) FROM "switchman_shards" 
805
-  (0.0ms) BEGIN
806
- Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
807
- 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", 1502], ["name", nil]]
808
-  (0.3ms) COMMIT
809
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
810
-  (0.1ms) BEGIN [shard 1502 master]
811
- SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1502 master]
812
- PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "switchman_shards_pkey"
813
- DETAIL: Key (id)=(1503) already exists.
814
- : INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id"
815
-  (0.1ms) ROLLBACK [shard 1502 master]
816
-  (0.1ms) BEGIN [shard 1502 master]
817
- SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]] [shard 1502 master]
818
-  (0.2ms) COMMIT [shard 1502 master]
819
-  (0.0ms) BEGIN [shard 1502 master]
820
-  (0.0ms) COMMIT [shard 1502 master]
821
-  (0.0ms) BEGIN [shard 1502 master]
822
-  (0.0ms) COMMIT [shard 1502 master]
823
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
824
-  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"
825
-  (0.0ms) BEGIN
826
- Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
827
- 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", 1502], ["name", nil]]
828
-  (0.2ms) COMMIT
829
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
830
-  (0.1ms) BEGIN [shard 1502 master]
831
- SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1502 master]
832
- PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "switchman_shards_pkey"
833
- DETAIL: Key (id)=(1503) already exists.
834
- : INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id"
835
-  (0.1ms) ROLLBACK [shard 1502 master]
836
-  (0.0ms) BEGIN [shard 1502 master]
837
- SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]] [shard 1502 master]
838
-  (0.2ms) COMMIT [shard 1502 master]
839
-  (0.0ms) BEGIN [shard 1502 master]
840
-  (0.0ms) COMMIT [shard 1502 master]
841
-  (0.0ms) BEGIN [shard 1502 master]
842
-  (0.0ms) COMMIT [shard 1502 master]
843
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
844
-  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" 
845
-  (0.1ms) BEGIN
846
- Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
847
- 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", 1502], ["name", nil]]
848
-  (0.3ms) COMMIT
849
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
850
-  (0.1ms) BEGIN [shard 1502 master]
851
- SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1502 master]
852
- PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "switchman_shards_pkey"
853
- DETAIL: Key (id)=(1503) already exists.
854
- : INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id"
855
-  (0.1ms) ROLLBACK [shard 1502 master]
856
-  (0.1ms) BEGIN [shard 1502 master]
857
- SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]] [shard 1502 master]
858
-  (0.2ms) COMMIT [shard 1502 master]
859
-  (0.0ms) BEGIN [shard 1502 master]
860
-  (0.0ms) COMMIT [shard 1502 master]
861
-  (0.0ms) BEGIN [shard 1502 master]
862
-  (0.0ms) COMMIT [shard 1502 master]
863
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
864
-  (0.1ms) BEGIN
865
-  (0.0ms) SAVEPOINT active_record_1
866
- 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", nil]]
867
-  (0.0ms) RELEASE SAVEPOINT active_record_1
868
-  (0.0ms) SAVEPOINT active_record_1
869
- 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]]
870
-  (0.0ms) RELEASE SAVEPOINT active_record_1
871
-  (0.1ms) ROLLBACK
872
-  (0.1ms) BEGIN
873
-  (0.1ms) SAVEPOINT active_record_1
874
- 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]]
875
-  (0.1ms) RELEASE SAVEPOINT active_record_1
876
-  (0.1ms) SAVEPOINT active_record_1
877
- SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]]
878
-  (0.1ms) RELEASE SAVEPOINT active_record_1
879
-  (0.1ms) ROLLBACK
880
-  (0.0ms) BEGIN
881
-  (0.1ms) ROLLBACK
882
-  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"
883
-  (0.0ms) BEGIN
884
- Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
885
- 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", 1502], ["name", nil]]
886
-  (5.4ms) COMMIT
887
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
888
-  (0.0ms) BEGIN [shard 1502 master]
889
- SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1502 master]
890
- PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "switchman_shards_pkey"
891
- DETAIL: Key (id)=(1503) already exists.
892
- : INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id"
893
-  (0.0ms) ROLLBACK [shard 1502 master]
894
-  (0.1ms) BEGIN [shard 1502 master]
895
- SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]] [shard 1502 master]
896
-  (5.9ms) COMMIT [shard 1502 master]
897
-  (0.1ms) BEGIN [shard 1502 master]
898
-  (0.1ms) COMMIT [shard 1502 master]
899
-  (0.1ms) BEGIN [shard 1502 master]
900
-  (0.1ms) COMMIT [shard 1502 master]
901
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
902
-  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" 
903
-  (0.0ms) BEGIN
904
- Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
905
- 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", 1502], ["name", nil]]
906
-  (0.3ms) COMMIT
907
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
908
-  (0.0ms) BEGIN [shard 1502 master]
909
- 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", 1503], ["name", "switchman_test_shard_1503"]] [shard 1502 master]
910
- PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "switchman_shards_pkey"
911
- DETAIL: Key (id)=(1503) already exists.
912
- : INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id"
913
-  (0.0ms) ROLLBACK [shard 1502 master]
914
-  (0.1ms) BEGIN [shard 1502 master]
915
- SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]] [shard 1502 master]
916
-  (0.2ms) COMMIT [shard 1502 master]
917
-  (0.0ms) BEGIN [shard 1502 master]
918
-  (0.0ms) COMMIT [shard 1502 master]
919
-  (0.0ms) BEGIN [shard 1502 master]
920
-  (0.0ms) COMMIT [shard 1502 master]
921
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
922
-  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"
923
-  (0.0ms) BEGIN
924
- Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
925
- 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", 1502], ["name", nil]]
926
-  (0.2ms) COMMIT
927
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
928
-  (0.0ms) BEGIN [shard 1502 master]
929
- 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", 1503], ["name", "switchman_test_shard_1503"]] [shard 1502 master]
930
- PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "switchman_shards_pkey"
931
- DETAIL: Key (id)=(1503) already exists.
932
- : INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id"
933
-  (0.0ms) ROLLBACK [shard 1502 master]
934
-  (0.1ms) BEGIN [shard 1502 master]
935
- SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]] [shard 1502 master]
936
-  (0.2ms) COMMIT [shard 1502 master]
937
-  (0.0ms) BEGIN [shard 1502 master]
938
-  (0.0ms) COMMIT [shard 1502 master]
939
-  (0.0ms) BEGIN [shard 1502 master]
940
-  (0.0ms) COMMIT [shard 1502 master]
941
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
942
-  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" 
943
-  (0.0ms) BEGIN
944
- Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
945
- 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", 1502], ["name", nil]]
946
-  (0.3ms) COMMIT
947
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
948
-  (0.0ms) BEGIN [shard 1502 master]
949
- 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", 1503], ["name", "switchman_test_shard_1503"]] [shard 1502 master]
950
- PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "switchman_shards_pkey"
951
- DETAIL: Key (id)=(1503) already exists.
952
- : INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id"
953
-  (0.0ms) ROLLBACK [shard 1502 master]
954
-  (0.1ms) BEGIN [shard 1502 master]
955
- SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]] [shard 1502 master]
956
-  (0.2ms) COMMIT [shard 1502 master]
957
-  (0.0ms) BEGIN [shard 1502 master]
958
-  (0.0ms) COMMIT [shard 1502 master]
959
-  (0.0ms) BEGIN [shard 1502 master]
960
-  (0.0ms) COMMIT [shard 1502 master]
961
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
962
-  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"
963
-  (0.1ms) BEGIN
964
- Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
965
- 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", 1502], ["name", nil]]
966
-  (0.3ms) COMMIT
967
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
968
-  (0.0ms) BEGIN [shard 1502 master]
969
- 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", 1503], ["name", "switchman_test_shard_1503"]] [shard 1502 master]
970
- PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "switchman_shards_pkey"
971
- DETAIL: Key (id)=(1503) already exists.
972
- : INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id"
973
-  (0.0ms) ROLLBACK [shard 1502 master]
974
-  (0.0ms) BEGIN [shard 1502 master]
975
- SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]] [shard 1502 master]
976
-  (0.2ms) COMMIT [shard 1502 master]
977
-  (0.1ms) BEGIN [shard 1502 master]
978
-  (0.0ms) COMMIT [shard 1502 master]
979
-  (0.0ms) BEGIN [shard 1502 master]
980
-  (0.0ms) COMMIT [shard 1502 master]
981
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
982
-  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" 
983
-  (0.0ms) BEGIN
984
- Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
985
- 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", 1502], ["name", nil]]
986
-  (0.3ms) COMMIT
987
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
988
-  (0.0ms) BEGIN [shard 1502 master]
989
- 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", 1503], ["name", "switchman_test_shard_1503"]] [shard 1502 master]
990
- PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "switchman_shards_pkey"
991
- DETAIL: Key (id)=(1503) already exists.
992
- : INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id"
993
-  (0.0ms) ROLLBACK [shard 1502 master]
994
-  (0.0ms) BEGIN [shard 1502 master]
995
- SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]] [shard 1502 master]
996
-  (0.2ms) COMMIT [shard 1502 master]
997
-  (0.0ms) BEGIN [shard 1502 master]
998
-  (0.0ms) COMMIT [shard 1502 master]
999
-  (0.0ms) BEGIN [shard 1502 master]
1000
-  (0.0ms) COMMIT [shard 1502 master]
1001
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
1002
-  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"
1003
-  (0.0ms) BEGIN
1004
- Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
1005
- 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", 1502], ["name", nil]]
1006
-  (0.4ms) COMMIT
1007
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
1008
-  (0.0ms) BEGIN [shard 1502 master]
1009
- SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1502 master]
1010
- PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "switchman_shards_pkey"
1011
- DETAIL: Key (id)=(1503) already exists.
1012
- : INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id"
1013
-  (0.1ms) ROLLBACK [shard 1502 master]
1014
-  (0.1ms) BEGIN [shard 1502 master]
1015
- SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]] [shard 1502 master]
1016
-  (0.3ms) COMMIT [shard 1502 master]
1017
-  (0.1ms) BEGIN [shard 1502 master]
1018
-  (0.1ms) COMMIT [shard 1502 master]
1019
-  (0.0ms) BEGIN [shard 1502 master]
1020
-  (0.0ms) COMMIT [shard 1502 master]
1021
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
1022
-  (0.0ms) BEGIN
1023
-  (0.0ms) SAVEPOINT active_record_1
1024
- 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", "non_existent_shard"]]
1025
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1026
-  (0.0ms) SAVEPOINT active_record_1
1027
- 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]]
1028
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1029
-  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1509 master]
1030
- PG::UndefinedTable: ERROR: relation "users" does not exist
1031
- LINE 1: SELECT COUNT(*) FROM "users"
1032
- ^
1033
- : SELECT COUNT(*) FROM "users"
1034
-  (0.9ms) SELECT COUNT(*) FROM "users"  [shard 1510 master]
1035
-  (0.1ms) ROLLBACK
1036
-  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" 
1037
-  (0.0ms) BEGIN
1038
- Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
1039
- 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", 1502], ["name", nil]]
1040
-  (0.3ms) COMMIT
1041
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
1042
-  (0.0ms) BEGIN [shard 1502 master]
1043
- 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", 1503], ["name", "switchman_test_shard_1503"]] [shard 1502 master]
1044
- PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "switchman_shards_pkey"
1045
- DETAIL: Key (id)=(1503) already exists.
1046
- : INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id"
1047
-  (0.0ms) ROLLBACK [shard 1502 master]
1048
-  (0.0ms) BEGIN [shard 1502 master]
1049
- SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]] [shard 1502 master]
1050
-  (0.3ms) COMMIT [shard 1502 master]
1051
-  (0.0ms) BEGIN [shard 1502 master]
1052
-  (0.0ms) COMMIT [shard 1502 master]
1053
-  (0.0ms) BEGIN [shard 1502 master]
1054
-  (0.0ms) COMMIT [shard 1502 master]
1055
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
1056
-  (0.0ms) BEGIN
1057
-  (0.1ms) ROLLBACK
1058
-  (0.1ms) BEGIN
1059
-  (0.1ms) ROLLBACK
1060
-  (0.0ms) BEGIN
1061
-  (0.0ms) ROLLBACK
1062
-  (0.0ms) BEGIN
1063
-  (0.0ms) ROLLBACK
1064
-  (0.0ms) BEGIN
1065
-  (0.0ms) ROLLBACK
1066
-  (0.0ms) BEGIN
1067
-  (0.0ms) ROLLBACK
1068
-  (0.0ms) BEGIN
1069
-  (0.0ms) ROLLBACK
1070
-  (0.0ms) BEGIN
1071
-  (0.0ms) ROLLBACK
1072
-  (0.0ms) BEGIN
1073
-  (0.1ms) ROLLBACK
1074
-  (0.0ms) BEGIN
1075
-  (0.1ms) ROLLBACK
1076
-  (0.1ms) BEGIN
1077
-  (0.1ms) ROLLBACK
1078
-  (0.1ms) BEGIN
1079
-  (0.1ms) ROLLBACK
1080
-  (0.1ms) BEGIN
1081
-  (0.0ms) ROLLBACK
1082
-  (0.1ms) BEGIN
1083
-  (0.1ms) ROLLBACK
1084
-  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"
1085
-  (0.1ms) BEGIN
1086
- Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
1087
- 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", 1502], ["name", nil]]
1088
-  (0.4ms) COMMIT
1089
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
1090
-  (0.0ms) BEGIN [shard 1502 master]
1091
- 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", 1503], ["name", "switchman_test_shard_1503"]] [shard 1502 master]
1092
- PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "switchman_shards_pkey"
1093
- DETAIL: Key (id)=(1503) already exists.
1094
- : INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id"
1095
-  (0.0ms) ROLLBACK [shard 1502 master]
1096
-  (0.0ms) BEGIN [shard 1502 master]
1097
- SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]] [shard 1502 master]
1098
-  (0.2ms) COMMIT [shard 1502 master]
1099
-  (0.0ms) BEGIN [shard 1502 master]
1100
-  (0.0ms) COMMIT [shard 1502 master]
1101
-  (0.0ms) BEGIN [shard 1502 master]
1102
-  (0.0ms) COMMIT [shard 1502 master]
1103
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
1104
-  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" 
93
+  (0.1ms) begin transaction [shard 2968 deploy]
94
+  (0.5ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 2968 deploy]
95
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 2968 deploy]
96
+  (1.2ms) commit transaction [shard 2968 deploy]
97
+  (0.2ms) SAVEPOINT active_record_1 [shard 2965 master]
98
+ SQL (0.5ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 2968 [["name", "db/shard_2968.sqlite3"]] [shard 2965 master]
99
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2965 master]
100
+  (0.1ms) begin transaction [shard 2968 master]
101
+ SQL (1.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 20 Mar 2014 22:07:37 UTC +00:00], ["updated_at", Thu, 20 Mar 2014 22:07:37 UTC +00:00]] [shard 2968 master]
102
+  (0.8ms) commit transaction [shard 2968 master]
103
+  (0.2ms) SAVEPOINT active_record_1 [shard 2965 master]
104
+ SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 2968]] [shard 2965 master]
105
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2965 master]
106
+  (0.1ms) ROLLBACK [shard 2967 master]
107
+  (0.1ms) ROLLBACK [shard 2965 master]
108
+  (0.1ms) BEGIN [shard 2965 master]
109
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2965 master]
110
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 2966]] [shard 2965 master]
111
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 2967]] [shard 2965 master]
112
+  (0.1ms) BEGIN [shard 2967 master]
113
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 2965 master]
114
+  (0.1ms) SAVEPOINT active_record_1 [shard 2965 master]
115
+ SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "2"], ["name", "public"]] [shard 2965 master]
116
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2965 master]
117
+  (0.7ms) CREATE SCHEMA switchman_test_shard_2969 [shard 2969 deploy]
118
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 2969 deploy]
119
+  (0.1ms) SAVEPOINT active_record_1 [shard 2965 master]
120
+ SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 2969 [["name", "switchman_test_shard_2969"]] [shard 2965 master]
121
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2965 master]
122
+  (0.2ms) BEGIN [shard 2969 master]
123
+ SQL (1.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 20 Mar 2014 22:07:38 UTC +00:00], ["updated_at", Thu, 20 Mar 2014 22:07:38 UTC +00:00]] [shard 2969 master]
124
+  (6.4ms) COMMIT [shard 2969 master]
125
+  (0.6ms) DROP SCHEMA switchman_test_shard_2969 CASCADE [shard 2969 deploy]
126
+  (0.2ms) SAVEPOINT active_record_1 [shard 2965 master]
127
+ SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 2969]] [shard 2965 master]
128
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2965 master]
129
+  (0.2ms) ROLLBACK [shard 2967 master]
130
+  (0.2ms) ROLLBACK [shard 2965 master]
131
+  (0.1ms) BEGIN [shard 2965 master]
132
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2965 master]
133
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 2966]] [shard 2965 master]
134
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 2967]] [shard 2965 master]
135
+  (0.1ms) BEGIN [shard 2967 master]
136
+ Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 2965 master]
137
+  (0.1ms) SAVEPOINT active_record_1 [shard 2965 master]
138
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 2965 master]
139
+  (0.1ms) ROLLBACK [shard 2967 master]
140
+  (0.1ms) ROLLBACK [shard 2965 master]
141
+  (0.1ms) BEGIN [shard 2965 master]
142
+ Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2965 master]
143
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 2966]] [shard 2965 master]
144
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 2967]] [shard 2965 master]
145
+  (0.1ms) BEGIN [shard 2967 master]
146
+ Switchman::Shard Load (0.3ms) 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 "switchman_shards"."id" ASC LIMIT 1 [shard 2965 master]
147
+  (0.1ms) SAVEPOINT active_record_1 [shard 2965 master]
148
+ SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 2965 master]
149
+  (0.2ms) CREATE SCHEMA switchman_test_shard_2970 [shard 2970 deploy]
150
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 2970 deploy]
151
+ SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 2970 [["name", "switchman_test_shard_2970"]] [shard 2965 master]
152
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2965 master]
153
+  (0.1ms) SAVEPOINT active_record_1 [shard 2970 master]
154
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 20 Mar 2014 22:07:38 UTC +00:00], ["updated_at", Thu, 20 Mar 2014 22:07:38 UTC +00:00]] [shard 2970 master]
155
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2970 master]
156
+  (0.4ms) DROP SCHEMA switchman_test_shard_2970 CASCADE [shard 2970 deploy]
157
+  (0.1ms) SAVEPOINT active_record_1 [shard 2965 master]
158
+ SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 2970]] [shard 2965 master]
159
+  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2965 master]
160
+  (0.1ms) ROLLBACK [shard 2967 master]
161
+  (0.1ms) ROLLBACK [shard 2965 master]
162
+  (0.1ms) BEGIN [shard 2965 master]
163
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 2965]] [shard 2965 master]
164
+  (0.4ms) COMMIT [shard 2965 master]
165
+  (0.1ms) BEGIN [shard 2965 master]
166
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 2966]] [shard 2965 master]
167
+  (0.3ms) COMMIT [shard 2965 master]
168
+  (0.1ms) BEGIN [shard 2965 master]
169
+ SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 2967]] [shard 2965 master]
170
+  (0.2ms) COMMIT [shard 2965 master]
171
+ Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2965 master]
172
+  (0.2ms) BEGIN [shard 2965 master]
173
+  (0.1ms) ROLLBACK [shard 2965 master]
174
+  (0.1ms) BEGIN [shard 2965 master]
175
+  (0.1ms) ROLLBACK [shard 2965 master]
176
+  (0.1ms) BEGIN [shard 2965 master]
177
+  (0.1ms) ROLLBACK [shard 2965 master]
178
+  (0.1ms) BEGIN [shard 2965 master]
179
+  (0.1ms) ROLLBACK [shard 2965 master]
180
+  (0.5ms) DROP SCHEMA switchman_test_shard_2966 CASCADE [shard 2966 deploy]
1105
181
   (0.1ms) BEGIN
1106
- Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
1107
- 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", 1502], ["name", nil]]
1108
-  (0.3ms) COMMIT
1109
- Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
1110
-  (0.0ms) BEGIN [shard 1502 master]
1111
- 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", 1503], ["name", "switchman_test_shard_1503"]] [shard 1502 master]
1112
- PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "switchman_shards_pkey"
1113
- DETAIL: Key (id)=(1503) already exists.
1114
- : INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id"
1115
-  (0.0ms) ROLLBACK [shard 1502 master]
1116
-  (0.0ms) BEGIN [shard 1502 master]
1117
- SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]] [shard 1502 master]
1118
-  (0.2ms) COMMIT [shard 1502 master]
1119
-  (0.0ms) BEGIN [shard 1502 master]
1120
-  (0.0ms) COMMIT [shard 1502 master]
1121
-  (0.0ms) BEGIN [shard 1502 master]
1122
-  (0.0ms) COMMIT [shard 1502 master]
1123
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1502 master]
1124
-  (8.4ms) DROP SCHEMA switchman_test_shard_1503 CASCADE [shard 1503 deploy]
1125
-  (0.0ms) BEGIN
1126
-  (0.0ms) COMMIT
1127
-  (12.9ms) DROP SCHEMA switchman_test_shard_1504 CASCADE [shard 1504 deploy]
1128
-  (0.2ms) BEGIN
1129
182
   (0.1ms) COMMIT
1130
- Connecting to database specified by database.yml
1131
-  (0.5ms) SELECT * FROM unnest(current_schemas(false))
1132
- Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
1133
- SQL (7.5ms) DELETE FROM "switchman_shards"
1134
- Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
1135
-  (0.1ms) BEGIN
1136
- Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
1137
- SQL (0.8ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]
1138
-  (0.4ms) COMMIT
1139
- Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
1140
- Switchman::Shard Load (1.3ms) 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 1511 master]
1141
-  (0.1ms) BEGIN [shard 1511 master]