forceps 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/Rakefile +32 -0
  3. data/lib/forceps/acts_as_copyable_model.rb +245 -0
  4. data/lib/forceps/client.rb +126 -0
  5. data/lib/forceps/version.rb +3 -0
  6. data/lib/forceps.rb +30 -0
  7. data/lib/tasks/forceps_tasks.rake +4 -0
  8. data/test/callbacks_test.rb +21 -0
  9. data/test/clone_structures_test.rb +73 -0
  10. data/test/dummy/README.rdoc +28 -0
  11. data/test/dummy/Rakefile +6 -0
  12. data/test/dummy/app/assets/javascripts/application.js +13 -0
  13. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  14. data/test/dummy/app/controllers/application_controller.rb +5 -0
  15. data/test/dummy/app/helpers/application_helper.rb +2 -0
  16. data/test/dummy/app/models/address.rb +3 -0
  17. data/test/dummy/app/models/car.rb +5 -0
  18. data/test/dummy/app/models/invoice.rb +7 -0
  19. data/test/dummy/app/models/line_item.rb +4 -0
  20. data/test/dummy/app/models/product.rb +4 -0
  21. data/test/dummy/app/models/tag.rb +3 -0
  22. data/test/dummy/app/models/user.rb +4 -0
  23. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  24. data/test/dummy/bin/bundle +3 -0
  25. data/test/dummy/bin/rails +4 -0
  26. data/test/dummy/bin/rake +4 -0
  27. data/test/dummy/config/application.rb +23 -0
  28. data/test/dummy/config/boot.rb +5 -0
  29. data/test/dummy/config/database.yml +31 -0
  30. data/test/dummy/config/environment.rb +5 -0
  31. data/test/dummy/config/environments/development.rb +29 -0
  32. data/test/dummy/config/environments/production.rb +80 -0
  33. data/test/dummy/config/environments/test.rb +36 -0
  34. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  35. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  36. data/test/dummy/config/initializers/inflections.rb +16 -0
  37. data/test/dummy/config/initializers/mime_types.rb +5 -0
  38. data/test/dummy/config/initializers/secret_token.rb +12 -0
  39. data/test/dummy/config/initializers/session_store.rb +3 -0
  40. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  41. data/test/dummy/config/locales/en.yml +23 -0
  42. data/test/dummy/config/routes.rb +56 -0
  43. data/test/dummy/config.ru +4 -0
  44. data/test/dummy/db/development.sqlite3 +0 -0
  45. data/test/dummy/db/migrate/20140101112114_create_invoices.rb +9 -0
  46. data/test/dummy/db/migrate/20140102125046_add_number_to_invoices.rb +5 -0
  47. data/test/dummy/db/migrate/20140103172515_create_users.rb +8 -0
  48. data/test/dummy/db/migrate/20140103172643_add_user_id_to_invoices.rb +5 -0
  49. data/test/dummy/db/migrate/20140104145204_create_line_items.rb +11 -0
  50. data/test/dummy/db/migrate/20140104145227_create_products.rb +10 -0
  51. data/test/dummy/db/migrate/20140104150906_create_addresses.rb +12 -0
  52. data/test/dummy/db/migrate/20140114111137_create_products_tags_join_table.rb +8 -0
  53. data/test/dummy/db/migrate/20140114111219_create_tags.rb +7 -0
  54. data/test/dummy/db/migrate/20140117112556_add_type_to_products.rb +5 -0
  55. data/test/dummy/db/remote.sqlite3 +0 -0
  56. data/test/dummy/db/schema.rb +64 -0
  57. data/test/dummy/db/test.sqlite3 +0 -0
  58. data/test/dummy/log/RAILS_ENV=test.log +0 -0
  59. data/test/dummy/log/development.log +608 -0
  60. data/test/dummy/log/remote.log +182 -0
  61. data/test/dummy/log/target.log +30 -0
  62. data/test/dummy/log/test.log +132555 -0
  63. data/test/dummy/public/404.html +58 -0
  64. data/test/dummy/public/422.html +58 -0
  65. data/test/dummy/public/500.html +57 -0
  66. data/test/dummy/public/favicon.ico +0 -0
  67. data/test/exclude_records_test.rb +43 -0
  68. data/test/fixtures/invoices.yml +11 -0
  69. data/test/fixtures/users.yml +8 -0
  70. data/test/reuse_existing_records_test.rb +41 -0
  71. data/test/support/minitest_ext.rb +13 -0
  72. data/test/support/remote_address.rb +7 -0
  73. data/test/support/remote_invoice.rb +8 -0
  74. data/test/support/remote_line_item.rb +8 -0
  75. data/test/support/remote_product.rb +8 -0
  76. data/test/support/remote_tag.rb +7 -0
  77. data/test/support/remote_user.rb +8 -0
  78. data/test/test_helper.rb +37 -0
  79. metadata +296 -0
@@ -0,0 +1,608 @@
1
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateInvoices (20140101112114)
5
+  (0.0ms) begin transaction
6
+  (0.2ms) CREATE TABLE "invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "date" date, "created_at" datetime, "updated_at" datetime) 
7
+ SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140101112114"]]
8
+  (0.7ms) commit transaction
9
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10
+  (1.0ms) CREATE TABLE "invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "date" date, "created_at" datetime, "updated_at" datetime) 
11
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13
+  (0.1ms) SELECT version FROM "schema_migrations"
14
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140101112114')
15
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
16
+ Migrating to AddNumberToInvoices (20140102125046)
17
+  (0.1ms) begin transaction
18
+  (0.4ms) ALTER TABLE "invoices" ADD "number" integer
19
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140102125046"]]
20
+  (3.6ms) commit transaction
21
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
22
+  (0.1ms) SELECT COUNT(*) FROM "invoices"
23
+  (0.1ms) begin transaction
24
+ SQL (3.7ms) INSERT INTO "invoices" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 02 Jan 2014 19:58:55 UTC +00:00], ["updated_at", Thu, 02 Jan 2014 19:58:55 UTC +00:00]]
25
+  (3.5ms) commit transaction
26
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
27
+  (0.4ms) SELECT COUNT(*) FROM "invoices"
28
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
29
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
30
+  (0.3ms) SELECT COUNT(*) FROM "invoices"
31
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
32
+  (0.1ms) begin transaction
33
+ SQL (3.6ms) INSERT INTO "invoices" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 02 Jan 2014 20:02:22 UTC +00:00], ["updated_at", Thu, 02 Jan 2014 20:02:22 UTC +00:00]]
34
+  (2.9ms) commit transaction
35
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
36
+  (0.3ms) SELECT COUNT(*) FROM "invoices"
37
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
38
+  (0.1ms) begin transaction
39
+ SQL (1.0ms) INSERT INTO "invoices" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 02 Jan 2014 20:03:48 UTC +00:00], ["updated_at", Thu, 02 Jan 2014 20:03:48 UTC +00:00]]
40
+  (2.0ms) commit transaction
41
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
42
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
43
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices"
44
+  (0.2ms) begin transaction
45
+ SQL (0.9ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 1]]
46
+  (2.1ms) commit transaction
47
+  (0.1ms) begin transaction
48
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 2]]
49
+  (0.7ms) commit transaction
50
+  (0.1ms) begin transaction
51
+ SQL (3.0ms) INSERT INTO "invoices" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Jan 2014 08:58:10 UTC +00:00], ["updated_at", Fri, 03 Jan 2014 08:58:10 UTC +00:00]]
52
+  (3.1ms) commit transaction
53
+  (0.1ms) begin transaction
54
+ SQL (0.5ms) INSERT INTO "invoices" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Jan 2014 08:58:13 UTC +00:00], ["updated_at", Fri, 03 Jan 2014 08:58:13 UTC +00:00]]
55
+  (2.4ms) commit transaction
56
+  (0.1ms) begin transaction
57
+ SQL (0.5ms) INSERT INTO "invoices" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Jan 2014 08:58:13 UTC +00:00], ["updated_at", Fri, 03 Jan 2014 08:58:13 UTC +00:00]]
58
+  (2.1ms) commit transaction
59
+  (0.3ms) SELECT COUNT(*) FROM "invoices"
60
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
61
+  (0.1ms) SELECT COUNT(*) FROM "invoices"
62
+ RemoteInvoice Load (0.4ms) SELECT "invoices".* FROM "invoices"
63
+  (0.1ms) begin transaction
64
+ SQL (0.4ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 3]]
65
+  (2.4ms) commit transaction
66
+  (0.0ms) begin transaction
67
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 4]]
68
+  (0.4ms) commit transaction
69
+  (0.0ms) begin transaction
70
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 5]]
71
+  (0.4ms) commit transaction
72
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
73
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
74
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
75
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices"
76
+  (0.1ms) begin transaction
77
+ SQL (5.0ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 1]]
78
+  (4.1ms) commit transaction
79
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" ORDER BY "invoices"."id" DESC LIMIT 1
80
+  (0.1ms) begin transaction
81
+ SQL (1.2ms) INSERT INTO "invoices" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 03 Jan 2014 09:46:19 UTC +00:00], ["number", 123], ["updated_at", Fri, 03 Jan 2014 09:46:19 UTC +00:00]]
82
+  (2.7ms) commit transaction
83
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" ORDER BY "invoices"."id" DESC LIMIT 1
84
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" ORDER BY "invoices"."id" DESC LIMIT 1
85
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" ORDER BY "invoices"."id" DESC LIMIT 1
86
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
87
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices"
88
+  (0.1ms) begin transaction
89
+ SQL (0.4ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 2]]
90
+  (2.3ms) commit transaction
91
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
92
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
93
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
94
+ RemoteInvoice Load (0.3ms) SELECT "invoices".* FROM "invoices"
95
+  (0.1ms) begin transaction
96
+ SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 6]]
97
+  (2.1ms) commit transaction
98
+  (0.1ms) begin transaction
99
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 7]]
100
+  (0.5ms) commit transaction
101
+  (0.0ms) begin transaction
102
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 8]]
103
+  (0.5ms) commit transaction
104
+  (0.0ms) begin transaction
105
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 9]]
106
+  (0.6ms) commit transaction
107
+  (0.0ms) begin transaction
108
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 10]]
109
+  (0.5ms) commit transaction
110
+  (0.0ms) begin transaction
111
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 11]]
112
+  (0.5ms) commit transaction
113
+  (0.1ms) begin transaction
114
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 12]]
115
+  (0.5ms) commit transaction
116
+  (0.0ms) begin transaction
117
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 13]]
118
+  (0.5ms) commit transaction
119
+  (0.0ms) begin transaction
120
+ SQL (0.4ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 14]]
121
+  (0.8ms) commit transaction
122
+  (0.0ms) begin transaction
123
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 15]]
124
+  (0.5ms) commit transaction
125
+  (0.0ms) begin transaction
126
+ SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 16]]
127
+  (0.6ms) commit transaction
128
+  (0.1ms) begin transaction
129
+ SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 17]]
130
+  (0.7ms) commit transaction
131
+  (0.0ms) begin transaction
132
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 18]]
133
+  (0.4ms) commit transaction
134
+  (0.0ms) begin transaction
135
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 19]]
136
+  (0.4ms) commit transaction
137
+  (0.1ms) begin transaction
138
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 20]]
139
+  (0.4ms) commit transaction
140
+  (0.0ms) begin transaction
141
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 21]]
142
+  (0.5ms) commit transaction
143
+  (0.0ms) begin transaction
144
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 22]]
145
+  (0.5ms) commit transaction
146
+  (0.0ms) begin transaction
147
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 23]]
148
+  (0.4ms) commit transaction
149
+  (0.0ms) begin transaction
150
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 24]]
151
+  (0.5ms) commit transaction
152
+  (0.0ms) begin transaction
153
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 25]]
154
+  (0.5ms) commit transaction
155
+  (0.0ms) begin transaction
156
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 26]]
157
+  (0.4ms) commit transaction
158
+  (0.0ms) begin transaction
159
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 27]]
160
+  (0.4ms) commit transaction
161
+  (0.1ms) begin transaction
162
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 28]]
163
+  (0.4ms) commit transaction
164
+  (0.0ms) begin transaction
165
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 29]]
166
+  (0.5ms) commit transaction
167
+  (0.0ms) begin transaction
168
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 30]]
169
+  (0.6ms) commit transaction
170
+  (0.0ms) begin transaction
171
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 31]]
172
+  (0.6ms) commit transaction
173
+  (0.0ms) begin transaction
174
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 32]]
175
+  (0.7ms) commit transaction
176
+  (0.0ms) begin transaction
177
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 33]]
178
+  (0.6ms) commit transaction
179
+  (0.0ms) begin transaction
180
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 34]]
181
+  (0.6ms) commit transaction
182
+  (0.0ms) begin transaction
183
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 35]]
184
+  (0.6ms) commit transaction
185
+  (0.0ms) begin transaction
186
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 36]]
187
+  (0.7ms) commit transaction
188
+  (0.0ms) begin transaction
189
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 37]]
190
+  (0.6ms) commit transaction
191
+  (0.0ms) begin transaction
192
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 38]]
193
+  (0.5ms) commit transaction
194
+  (0.1ms) begin transaction
195
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 39]]
196
+  (0.6ms) commit transaction
197
+  (0.0ms) begin transaction
198
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 40]]
199
+  (0.6ms) commit transaction
200
+  (0.0ms) begin transaction
201
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 41]]
202
+  (0.6ms) commit transaction
203
+  (0.1ms) begin transaction
204
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 42]]
205
+  (0.5ms) commit transaction
206
+  (0.0ms) begin transaction
207
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 43]]
208
+  (0.6ms) commit transaction
209
+  (0.0ms) begin transaction
210
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 44]]
211
+  (0.5ms) commit transaction
212
+  (0.0ms) begin transaction
213
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 45]]
214
+  (0.5ms) commit transaction
215
+  (0.0ms) begin transaction
216
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 46]]
217
+  (0.6ms) commit transaction
218
+  (0.1ms) begin transaction
219
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 47]]
220
+  (0.6ms) commit transaction
221
+  (0.0ms) begin transaction
222
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 48]]
223
+  (0.6ms) commit transaction
224
+  (0.0ms) begin transaction
225
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 49]]
226
+  (0.6ms) commit transaction
227
+  (0.0ms) begin transaction
228
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 50]]
229
+  (0.7ms) commit transaction
230
+  (0.1ms) begin transaction
231
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 51]]
232
+  (0.7ms) commit transaction
233
+  (0.0ms) begin transaction
234
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 52]]
235
+  (0.6ms) commit transaction
236
+  (0.0ms) begin transaction
237
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 53]]
238
+  (0.7ms) commit transaction
239
+  (0.0ms) begin transaction
240
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 54]]
241
+  (0.6ms) commit transaction
242
+  (0.0ms) begin transaction
243
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 55]]
244
+  (0.6ms) commit transaction
245
+  (0.0ms) begin transaction
246
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 56]]
247
+  (0.6ms) commit transaction
248
+  (0.0ms) begin transaction
249
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 57]]
250
+  (0.6ms) commit transaction
251
+  (0.0ms) begin transaction
252
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 58]]
253
+  (0.5ms) commit transaction
254
+  (0.0ms) begin transaction
255
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 59]]
256
+  (0.4ms) commit transaction
257
+  (0.0ms) begin transaction
258
+ SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 60]]
259
+  (0.5ms) commit transaction
260
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
261
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
262
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
263
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
264
+ RemoteInvoice Load (0.2ms) SELECT "invoices".* FROM "invoices"
265
+  (0.1ms) begin transaction
266
+ SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 61]]
267
+  (0.9ms) commit transaction
268
+  (0.1ms) begin transaction
269
+ SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 62]]
270
+  (0.9ms) commit transaction
271
+  (0.1ms) begin transaction
272
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 63]]
273
+  (0.7ms) commit transaction
274
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
275
+ RemoteInvoice Load (0.2ms) SELECT "invoices".* FROM "invoices"
276
+  (0.1ms) begin transaction
277
+ SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 64]]
278
+  (2.2ms) commit transaction
279
+  (0.1ms) begin transaction
280
+ SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 65]]
281
+  (0.6ms) commit transaction
282
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
283
+  (0.1ms) SELECT COUNT(*) FROM "invoices"
284
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
285
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
286
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
287
+  (0.1ms) SELECT COUNT(*) FROM "invoices"
288
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
289
+  (0.1ms) SELECT COUNT(*) FROM "invoices"
290
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
291
+  (0.1ms) SELECT COUNT(*) FROM "invoices"
292
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
293
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
294
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
295
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
296
+  (0.3ms) SELECT COUNT(*) FROM "invoices"
297
+  (2.4ms) DELETE FROM "invoices";
298
+  (0.3ms) SELECT COUNT(*) FROM "invoices"
299
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
300
+ RemoteInvoice Load (0.2ms) SELECT "invoices".* FROM "invoices"
301
+  (0.1ms) begin transaction
302
+ SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 70]]
303
+  (0.9ms) commit transaction
304
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
305
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
306
+ RemoteInvoice Load (0.2ms) SELECT "invoices".* FROM "invoices"
307
+  (0.1ms) begin transaction
308
+ SQL (0.4ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 71]]
309
+  (1.9ms) commit transaction
310
+  (0.1ms) begin transaction
311
+ SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 72]]
312
+  (0.7ms) commit transaction
313
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
314
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
315
+ RemoteInvoice Load (0.2ms) SELECT "invoices".* FROM "invoices"
316
+  (0.1ms) begin transaction
317
+ SQL (0.4ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 73]]
318
+  (2.0ms) commit transaction
319
+  (0.1ms) begin transaction
320
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 74]]
321
+  (0.6ms) commit transaction
322
+  (0.0ms) begin transaction
323
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 75]]
324
+  (0.5ms) commit transaction
325
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
326
+  (2.3ms) DELETE FROM "invoices";
327
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
328
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
329
+  (2.6ms) DELETE FROM "invoices";
330
+  (2.5ms) DELETE FROM "invoices";
331
+  (2.5ms) DELETE FROM "invoices";
332
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
333
+  (0.1ms) SELECT COUNT(*) FROM "invoices"
334
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
335
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
336
+  (3.0ms) DELETE FROM "invoices";
337
+  (0.1ms) SELECT COUNT(*) FROM "invoices"
338
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
339
+  (3.0ms) DELETE FROM "invoices";
340
+  (0.3ms) SELECT COUNT(*) FROM "invoices"
341
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
342
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
343
+ RemoteInvoice Load (0.2ms) SELECT "invoices".* FROM "invoices"
344
+  (0.1ms) begin transaction
345
+ SQL (0.5ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 82]]
346
+  (2.3ms) commit transaction
347
+  (0.1ms) begin transaction
348
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 83]]
349
+  (0.6ms) commit transaction
350
+  (0.0ms) begin transaction
351
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 84]]
352
+  (0.5ms) commit transaction
353
+  (0.0ms) begin transaction
354
+ SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 85]]
355
+  (0.5ms) commit transaction
356
+  (2.3ms) DELETE FROM "invoices";
357
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
358
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'invoices';
359
+  (2.3ms) DELETE FROM "invoices";
360
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
361
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'invoices';
362
+  (2.3ms) DELETE FROM "invoices";
363
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
364
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'invoices';
365
+  (2.6ms) DELETE FROM "invoices";
366
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
367
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'invoices';
368
+  (0.1ms) SELECT COUNT(*) FROM "invoices"
369
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
370
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
371
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
372
+  (0.2ms) SELECT COUNT(*) FROM "invoices"
373
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
374
+ Migrating to CreateUsers (20140103172515)
375
+  (0.1ms) begin transaction
376
+  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
377
+ SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140103172515"]]
378
+  (2.0ms) commit transaction
379
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
380
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
381
+ Migrating to AddUserIdToInvoices (20140103172643)
382
+  (0.1ms) begin transaction
383
+  (0.4ms) ALTER TABLE "invoices" ADD "user_id" integer
384
+ SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140103172643"]]
385
+  (3.7ms) commit transaction
386
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
387
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
388
+ Migrating to CreateLineItems (20140104145204)
389
+  (0.1ms) begin transaction
390
+  (0.5ms) CREATE TABLE "line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "quantity" varchar(255), "product_id" integer, "created_at" datetime, "updated_at" datetime) 
391
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104145204"]]
392
+  (2.3ms) commit transaction
393
+ Migrating to CreateProducts (20140104145227)
394
+  (0.1ms) begin transaction
395
+  (0.2ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price" varchar(255), "created_at" datetime, "updated_at" datetime) 
396
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104145227"]]
397
+  (0.7ms) commit transaction
398
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
399
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
400
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
401
+ Migrating to CreateProducts (20140104145227)
402
+  (0.0ms) begin transaction
403
+  (0.4ms) DROP TABLE "products"
404
+ SQL (0.9ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140104145227'
405
+  (1.9ms) commit transaction
406
+ Migrating to CreateLineItems (20140104145204)
407
+  (0.1ms) begin transaction
408
+  (0.3ms) DROP TABLE "line_items"
409
+ SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140104145204'
410
+  (0.8ms) commit transaction
411
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
412
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
413
+ Migrating to CreateLineItems (20140104145204)
414
+  (0.1ms) begin transaction
415
+  (0.5ms) CREATE TABLE "line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "quantity" integer, "product_id" integer, "created_at" datetime, "updated_at" datetime) 
416
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104145204"]]
417
+  (0.7ms) commit transaction
418
+ Migrating to CreateProducts (20140104145227)
419
+  (0.1ms) begin transaction
420
+  (0.3ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime) 
421
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104145227"]]
422
+  (0.6ms) commit transaction
423
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
424
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
425
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
426
+ Migrating to CreateProducts (20140104145227)
427
+  (0.1ms) begin transaction
428
+  (0.4ms) DROP TABLE "products"
429
+ SQL (0.9ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140104145227'
430
+  (2.1ms) commit transaction
431
+ Migrating to CreateLineItems (20140104145204)
432
+  (0.1ms) begin transaction
433
+  (0.2ms) DROP TABLE "line_items"
434
+ SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140104145204'
435
+  (0.6ms) commit transaction
436
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
437
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
438
+ Migrating to CreateLineItems (20140104145204)
439
+  (0.0ms) begin transaction
440
+  (0.4ms) CREATE TABLE "line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "quantity" integer, "product_id" integer, "invoice_id" integer, "created_at" datetime, "updated_at" datetime) 
441
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104145204"]]
442
+  (2.2ms) commit transaction
443
+ Migrating to CreateProducts (20140104145227)
444
+  (0.1ms) begin transaction
445
+  (0.4ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime) 
446
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104145227"]]
447
+  (0.7ms) commit transaction
448
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
449
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
450
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
451
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
452
+ Migrating to CreateAddresses (20140104150906)
453
+  (0.0ms) begin transaction
454
+  (0.4ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "city" varchar(255), "country" varchar(255), "user_id" integer, "created_at" datetime, "updated_at" datetime) 
455
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104150906"]]
456
+  (2.8ms) commit transaction
457
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
458
+  (0.0ms) begin transaction
459
+ SQL (4.7ms) INSERT INTO "products" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 14 Jan 2014 10:52:07 UTC +00:00], ["id", 12313], ["updated_at", Tue, 14 Jan 2014 10:52:07 UTC +00:00]]
460
+  (3.1ms) commit transaction
461
+ Product Load (0.2ms) SELECT "products".* FROM "products"
462
+  (0.1ms) begin transaction
463
+ SQL (0.5ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 12313]]
464
+  (2.6ms) commit transaction
465
+  (0.1ms) begin transaction
466
+ SQL (0.5ms) INSERT INTO "products" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 14 Jan 2014 10:52:35 UTC +00:00], ["id", 12313], ["updated_at", Tue, 14 Jan 2014 10:52:35 UTC +00:00]]
467
+  (2.8ms) commit transaction
468
+ Product Load (0.2ms) SELECT "products".* FROM "products"
469
+  (0.1ms) begin transaction
470
+ SQL (0.3ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 12313]]
471
+  (2.1ms) commit transaction
472
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
473
+ Migrating to CreateProductsTagsJoinTable (20140114111137)
474
+  (0.0ms) begin transaction
475
+  (0.4ms) CREATE TABLE "products_tags_join_table" ("product_id" integer, "tag_id" integer) 
476
+ SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140114111137"]]
477
+  (0.8ms) commit transaction
478
+ Migrating to CreateTags (20140114111219)
479
+  (0.0ms) begin transaction
480
+  (0.2ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
481
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140114111219"]]
482
+  (0.8ms) commit transaction
483
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
484
+  (0.1ms) begin transaction
485
+ SQL (3.2ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 14 Jan 2014 11:18:41 UTC +00:00], ["name", "Hola"], ["updated_at", Tue, 14 Jan 2014 11:18:41 UTC +00:00]]
486
+  (0.7ms) commit transaction
487
+  (0.1ms) begin transaction
488
+ SQL (0.7ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 14 Jan 2014 11:18:43 UTC +00:00], ["name", "Hola"], ["updated_at", Tue, 14 Jan 2014 11:18:43 UTC +00:00]]
489
+  (2.7ms) commit transaction
490
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
491
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
492
+ Migrating to CreateTags (20140114111219)
493
+  (0.0ms) begin transaction
494
+  (0.5ms) DROP TABLE "tags"
495
+ SQL (1.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140114111219'
496
+  (0.7ms) commit transaction
497
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
498
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
499
+ Migrating to CreateTags (20140114111219)
500
+  (0.1ms) begin transaction
501
+  (0.4ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
502
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140114111219"]]
503
+  (2.4ms) commit transaction
504
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
505
+  (0.1ms) begin transaction
506
+ SQL (0.4ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 14 Jan 2014 11:20:24 UTC +00:00], ["name", "Hola"], ["updated_at", Tue, 14 Jan 2014 11:20:24 UTC +00:00]]
507
+  (0.6ms) commit transaction
508
+  (0.0ms) begin transaction
509
+ SQL (2.9ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 14 Jan 2014 11:20:41 UTC +00:00], ["updated_at", Tue, 14 Jan 2014 11:20:41 UTC +00:00]]
510
+  (2.3ms) commit transaction
511
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
512
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
513
+ Migrating to CreateTags (20140114111219)
514
+  (0.0ms) begin transaction
515
+  (0.4ms) DROP TABLE "tags"
516
+ SQL (0.9ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140114111219'
517
+  (2.8ms) commit transaction
518
+ Migrating to CreateProductsTagsJoinTable (20140114111137)
519
+  (0.1ms) begin transaction
520
+  (0.2ms) DROP TABLE "products_tags"
521
+ SQLite3::SQLException: no such table: products_tags: DROP TABLE "products_tags"
522
+  (0.1ms) rollback transaction
523
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
524
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
525
+ Migrating to CreateProductsTagsJoinTable (20140114111137)
526
+  (0.0ms) begin transaction
527
+  (0.4ms) DROP TABLE "products_tags_join_table"
528
+ SQL (0.9ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140114111137'
529
+  (2.4ms) commit transaction
530
+ Migrating to CreateAddresses (20140104150906)
531
+  (0.1ms) begin transaction
532
+  (0.5ms) DROP TABLE "addresses"
533
+ SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140104150906'
534
+  (0.8ms) commit transaction
535
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
536
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
537
+ Migrating to CreateAddresses (20140104150906)
538
+  (0.0ms) begin transaction
539
+  (0.5ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "city" varchar(255), "country" varchar(255), "user_id" integer, "created_at" datetime, "updated_at" datetime) 
540
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104150906"]]
541
+  (2.7ms) commit transaction
542
+ Migrating to CreateProductsTagsJoinTable (20140114111137)
543
+  (0.1ms) begin transaction
544
+  (0.3ms) CREATE TABLE "products_tags" ("product_id" integer, "tag_id" integer) 
545
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140114111137"]]
546
+  (0.7ms) commit transaction
547
+ Migrating to CreateTags (20140114111219)
548
+  (0.1ms) begin transaction
549
+  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
550
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140114111219"]]
551
+  (1.0ms) commit transaction
552
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
553
+  (0.0ms) begin transaction
554
+ SQL (0.5ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 14 Jan 2014 11:22:08 UTC +00:00], ["updated_at", Tue, 14 Jan 2014 11:22:08 UTC +00:00]]
555
+  (2.2ms) commit transaction
556
+  (0.0ms) begin transaction
557
+ SQL (0.3ms) INSERT INTO "tags" DEFAULT VALUES
558
+  (0.1ms) INSERT INTO "products_tags" ("product_id", "tag_id") VALUES (12318, 1)
559
+  (1.9ms) commit transaction
560
+  (0.1ms) begin transaction
561
+ SQL (0.6ms) INSERT INTO "tags" ("name") VALUES (?) [["name", 2]]
562
+  (0.1ms) INSERT INTO "products_tags" ("product_id", "tag_id") VALUES (12318, 2)
563
+  (2.6ms) commit transaction
564
+ Tag Load (0.2ms) SELECT "tags".* FROM "tags"
565
+ Tag Load (0.2ms) SELECT "tags".* FROM "tags"
566
+  (0.1ms) begin transaction
567
+  (0.8ms) DELETE FROM "products_tags" WHERE "products_tags"."tag_id" = 1
568
+ SQL (0.2ms) DELETE FROM "tags" WHERE "tags"."id" = ? [["id", 1]]
569
+  (2.5ms) commit transaction
570
+  (0.1ms) begin transaction
571
+  (0.2ms) DELETE FROM "products_tags" WHERE "products_tags"."tag_id" = 2
572
+ SQL (0.1ms) DELETE FROM "tags" WHERE "tags"."id" = ? [["id", 2]]
573
+  (0.6ms) commit transaction
574
+ Product Load (0.1ms) SELECT "products".* FROM "products"
575
+  (0.1ms) begin transaction
576
+  (0.1ms) DELETE FROM "products_tags" WHERE "products_tags"."product_id" = 12314
577
+ SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 12314]]
578
+  (0.5ms) commit transaction
579
+  (0.0ms) begin transaction
580
+  (0.1ms) DELETE FROM "products_tags" WHERE "products_tags"."product_id" = 12315
581
+ SQL (0.1ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 12315]]
582
+  (0.5ms) commit transaction
583
+  (0.0ms) begin transaction
584
+  (0.1ms) DELETE FROM "products_tags" WHERE "products_tags"."product_id" = 12316
585
+ SQL (0.1ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 12316]]
586
+  (0.5ms) commit transaction
587
+  (0.0ms) begin transaction
588
+  (0.1ms) DELETE FROM "products_tags" WHERE "products_tags"."product_id" = 12317
589
+ SQL (0.1ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 12317]]
590
+  (0.5ms) commit transaction
591
+  (0.0ms) begin transaction
592
+  (0.1ms) DELETE FROM "products_tags" WHERE "products_tags"."product_id" = 12318
593
+ SQL (0.1ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 12318]]
594
+  (0.5ms) commit transaction
595
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
596
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
597
+ Product Exists (0.1ms) SELECT 1 AS one FROM "products" WHERE "products"."name" = '123321321' LIMIT 1
598
+  (0.1ms) begin transaction
599
+ SQL (3.2ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 14 Jan 2014 12:42:08 UTC +00:00], ["name", "123321321"], ["updated_at", Tue, 14 Jan 2014 12:42:08 UTC +00:00]]
600
+  (4.7ms) commit transaction
601
+ Product Exists (0.2ms) SELECT 1 AS one FROM "products" WHERE "products"."name" = '123321321' LIMIT 1
602
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
603
+ Migrating to AddTypeToProducts (20140117112556)
604
+  (0.1ms) begin transaction
605
+  (0.4ms) ALTER TABLE "products" ADD "type" varchar(255)
606
+ SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140117112556"]]
607
+  (2.4ms) commit transaction
608
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"