translatable_records 4.0.0.1 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +5 -5
  4. data/Rakefile +1 -3
  5. data/lib/translatable_records/version.rb +1 -1
  6. metadata +13 -107
  7. data/test/dummy/Rakefile +0 -5
  8. data/test/dummy/app/assets/javascripts/application.js +0 -13
  9. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  10. data/test/dummy/app/controllers/application_controller.rb +0 -5
  11. data/test/dummy/app/helpers/application_helper.rb +0 -2
  12. data/test/dummy/app/models/product.rb +0 -5
  13. data/test/dummy/app/models/product_translation.rb +0 -8
  14. data/test/dummy/app/views/layouts/application.html.erb +0 -12
  15. data/test/dummy/bin/bundle +0 -4
  16. data/test/dummy/bin/rails +0 -5
  17. data/test/dummy/bin/rake +0 -5
  18. data/test/dummy/bin/setup +0 -30
  19. data/test/dummy/config.ru +0 -4
  20. data/test/dummy/config/application.rb +0 -25
  21. data/test/dummy/config/boot.rb +0 -5
  22. data/test/dummy/config/database.yml +0 -10
  23. data/test/dummy/config/database.yml.travis +0 -3
  24. data/test/dummy/config/environment.rb +0 -5
  25. data/test/dummy/config/environments/development.rb +0 -41
  26. data/test/dummy/config/environments/production.rb +0 -79
  27. data/test/dummy/config/environments/test.rb +0 -42
  28. data/test/dummy/config/initializers/assets.rb +0 -11
  29. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  30. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  31. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  32. data/test/dummy/config/initializers/inflections.rb +0 -16
  33. data/test/dummy/config/initializers/mime_types.rb +0 -4
  34. data/test/dummy/config/initializers/session_store.rb +0 -3
  35. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  36. data/test/dummy/config/locales/en.yml +0 -23
  37. data/test/dummy/config/routes.rb +0 -56
  38. data/test/dummy/config/secrets.yml +0 -22
  39. data/test/dummy/db/migrate/20130819155126_create_products.rb +0 -8
  40. data/test/dummy/db/migrate/20161205171056_create_product_translations.rb +0 -12
  41. data/test/dummy/db/schema.rb +0 -34
  42. data/test/dummy/log/development.log +0 -78
  43. data/test/dummy/log/test.log +0 -1549
  44. data/test/dummy/public/404.html +0 -61
  45. data/test/dummy/public/422.html +0 -61
  46. data/test/dummy/public/500.html +0 -60
  47. data/test/dummy/public/favicon.ico +0 -0
  48. data/test/generator_test.rb +0 -21
  49. data/test/record_test.rb +0 -38
  50. data/test/test_helper.rb +0 -13
@@ -1,1549 +0,0 @@
1
-  (2.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreateProducts (20130819155126)
5
-  (0.1ms) BEGIN
6
-  (3.3ms) CREATE TABLE "products" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
7
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130819155126"]]
8
-  (0.4ms) COMMIT
9
- Migrating to CreateProductTranslations (20161205171056)
10
-  (0.2ms) BEGIN
11
-  (2.1ms) CREATE TABLE "product_translations" ("id" serial primary key, "product_id" integer, "locale" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
12
-  (0.7ms) CREATE UNIQUE INDEX "index_product_translations_on_product_id_and_locale" ON "product_translations" ("product_id", "locale")
13
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161205171056"]]
14
-  (0.6ms) COMMIT
15
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
16
-  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
17
- FROM pg_constraint c
18
- JOIN pg_class t1 ON c.conrelid = t1.oid
19
- JOIN pg_class t2 ON c.confrelid = t2.oid
20
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
21
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
22
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
23
- WHERE c.contype = 'f'
24
- AND t1.relname = 'product_translations'
25
- AND t3.nspname = ANY (current_schemas(false))
26
- ORDER BY c.conname
27
-
28
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
29
- FROM pg_constraint c
30
- JOIN pg_class t1 ON c.conrelid = t1.oid
31
- JOIN pg_class t2 ON c.confrelid = t2.oid
32
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
33
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
34
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
35
- WHERE c.contype = 'f'
36
- AND t1.relname = 'products'
37
- AND t3.nspname = ANY (current_schemas(false))
38
- ORDER BY c.conname
39
- 
40
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
41
-  (0.2ms) BEGIN
42
- ------------------------------------------------
43
- RecordsTest: test_associated_translation_edition
44
- ------------------------------------------------
45
-  (0.2ms) ROLLBACK
46
-  (0.1ms) BEGIN
47
- -------------------------------------------------
48
- RecordsTest: test_associated_translation_creation
49
- -------------------------------------------------
50
-  (0.1ms) ROLLBACK
51
-  (0.2ms) BEGIN
52
- -------------------------------------------------
53
- RecordsTest: test_associated_translation_deletion
54
- -------------------------------------------------
55
-  (0.1ms) ROLLBACK
56
-  (0.2ms) BEGIN
57
- -------------------------------
58
- RecordsTest: test_locale_change
59
- -------------------------------
60
-  (0.2ms) ROLLBACK
61
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
62
-  (0.2ms) BEGIN
63
- -------------------------------------------------
64
- RecordsTest: test_associated_translation_deletion
65
- -------------------------------------------------
66
-  (0.1ms) ROLLBACK
67
-  (0.1ms) BEGIN
68
- -------------------------------
69
- RecordsTest: test_locale_change
70
- -------------------------------
71
-  (0.1ms) ROLLBACK
72
-  (0.2ms) BEGIN
73
- -------------------------------------------------
74
- RecordsTest: test_associated_translation_creation
75
- -------------------------------------------------
76
-  (0.2ms) ROLLBACK
77
-  (0.1ms) BEGIN
78
- ------------------------------------------------
79
- RecordsTest: test_associated_translation_edition
80
- ------------------------------------------------
81
-  (0.2ms) ROLLBACK
82
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
83
-  (0.3ms) BEGIN
84
- -------------------------------------------------
85
- RecordsTest: test_associated_translation_deletion
86
- -------------------------------------------------
87
-  (0.2ms) ROLLBACK
88
-  (0.2ms) BEGIN
89
- -------------------------------
90
- RecordsTest: test_locale_change
91
- -------------------------------
92
-  (0.1ms) ROLLBACK
93
-  (0.1ms) BEGIN
94
- -------------------------------------------------
95
- RecordsTest: test_associated_translation_creation
96
- -------------------------------------------------
97
-  (0.1ms) ROLLBACK
98
-  (0.1ms) BEGIN
99
- ------------------------------------------------
100
- RecordsTest: test_associated_translation_edition
101
- ------------------------------------------------
102
-  (0.1ms) ROLLBACK
103
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
104
-  (0.2ms) BEGIN
105
- ------------------------------------------------
106
- RecordsTest: test_associated_translation_edition
107
- ------------------------------------------------
108
-  (0.1ms) ROLLBACK
109
-  (0.1ms) BEGIN
110
- -------------------------------------------------
111
- RecordsTest: test_associated_translation_creation
112
- -------------------------------------------------
113
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
114
-  (0.2ms) BEGIN
115
- -------------------------------------------------
116
- RecordsTest: test_associated_translation_deletion
117
- -------------------------------------------------
118
-  (0.2ms) SAVEPOINT active_record_1
119
- ProductTranslation Exists (6.8ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
120
-  (12.7ms) ROLLBACK TO SAVEPOINT active_record_1
121
-  (0.1ms) SAVEPOINT active_record_1
122
-  (0.1ms) RELEASE SAVEPOINT active_record_1
123
-  (0.2ms) ROLLBACK
124
-  (0.1ms) BEGIN
125
- ------------------------------------------------
126
- RecordsTest: test_associated_translation_edition
127
- ------------------------------------------------
128
-  (0.1ms) SAVEPOINT active_record_1
129
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
130
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
131
-  (0.1ms) ROLLBACK
132
-  (0.1ms) BEGIN
133
- -------------------------------------------------
134
- RecordsTest: test_associated_translation_creation
135
- -------------------------------------------------
136
-  (0.3ms) SAVEPOINT active_record_1
137
- ProductTranslation Exists (0.4ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
138
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
139
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
140
-  (0.2ms) BEGIN
141
- -------------------------------------------------
142
- RecordsTest: test_associated_translation_creation
143
- -------------------------------------------------
144
-  (0.1ms) SAVEPOINT active_record_1
145
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
146
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
147
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
148
-  (0.2ms) BEGIN
149
- -------------------------------------------------
150
- RecordsTest: test_associated_translation_creation
151
- -------------------------------------------------
152
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
153
-  (0.3ms) BEGIN
154
- -------------------------------------------------
155
- RecordsTest: test_associated_translation_deletion
156
- -------------------------------------------------
157
-  (0.1ms) SAVEPOINT active_record_1
158
- ProductTranslation Exists (0.5ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
159
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
160
-  (0.1ms) SAVEPOINT active_record_1
161
-  (0.1ms) RELEASE SAVEPOINT active_record_1
162
-  (0.1ms) ROLLBACK
163
-  (0.1ms) BEGIN
164
- ------------------------------------------------
165
- RecordsTest: test_associated_translation_edition
166
- ------------------------------------------------
167
-  (0.1ms) SAVEPOINT active_record_1
168
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
169
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
170
-  (0.1ms) SAVEPOINT active_record_1
171
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
172
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
173
-  (0.1ms) ROLLBACK
174
-  (0.1ms) BEGIN
175
- -------------------------------
176
- RecordsTest: test_locale_change
177
- -------------------------------
178
-  (0.1ms) SAVEPOINT active_record_1
179
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
180
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
181
-  (0.1ms) SAVEPOINT active_record_1
182
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
183
- ProductTranslation Exists (1.5ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
184
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
185
-  (0.1ms) ROLLBACK
186
-  (0.1ms) BEGIN
187
- -------------------------------------------------
188
- RecordsTest: test_associated_translation_creation
189
- -------------------------------------------------
190
-  (0.2ms) SAVEPOINT active_record_1
191
- ProductTranslation Exists (0.4ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
192
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
193
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
194
-  (0.2ms) BEGIN
195
- -------------------------------
196
- RecordsTest: test_locale_change
197
- -------------------------------
198
-  (0.2ms) SAVEPOINT active_record_1
199
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
200
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
201
-  (0.1ms) SAVEPOINT active_record_1
202
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
203
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
204
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
205
-  (0.2ms) ROLLBACK
206
-  (0.1ms) BEGIN
207
- -------------------------------------------------
208
- RecordsTest: test_associated_translation_deletion
209
- -------------------------------------------------
210
-  (0.2ms) SAVEPOINT active_record_1
211
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
212
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
213
-  (0.1ms) SAVEPOINT active_record_1
214
-  (0.1ms) RELEASE SAVEPOINT active_record_1
215
-  (0.1ms) ROLLBACK
216
-  (0.1ms) BEGIN
217
- ------------------------------------------------
218
- RecordsTest: test_associated_translation_edition
219
- ------------------------------------------------
220
-  (0.1ms) SAVEPOINT active_record_1
221
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
222
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
223
-  (0.1ms) SAVEPOINT active_record_1
224
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
225
-  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
226
-  (0.1ms) ROLLBACK
227
-  (0.2ms) BEGIN
228
- -------------------------------------------------
229
- RecordsTest: test_associated_translation_creation
230
- -------------------------------------------------
231
-  (0.1ms) SAVEPOINT active_record_1
232
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
233
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
234
-  (0.1ms) ROLLBACK
235
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
236
-  (0.2ms) BEGIN
237
- -------------------------------------------------
238
- RecordsTest: test_associated_translation_deletion
239
- -------------------------------------------------
240
-  (0.2ms) SAVEPOINT active_record_1
241
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
242
- SQL (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 17:23:51.483741"], ["updated_at", "2016-12-05 17:23:51.483741"]]
243
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "name"], ["product_id", 1], ["created_at", "2016-12-05 17:23:51.485404"], ["updated_at", "2016-12-05 17:23:51.485404"]]
244
-  (0.1ms) RELEASE SAVEPOINT active_record_1
245
-  (0.1ms) SAVEPOINT active_record_1
246
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 1]]
247
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 1]]
248
-  (0.1ms) RELEASE SAVEPOINT active_record_1
249
-  (0.1ms) ROLLBACK
250
-  (0.1ms) BEGIN
251
- -------------------------------------------------
252
- RecordsTest: test_associated_translation_creation
253
- -------------------------------------------------
254
-  (0.2ms) SAVEPOINT active_record_1
255
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
256
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 17:23:51.490832"], ["updated_at", "2016-12-05 17:23:51.490832"]]
257
- SQL (0.5ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "name"], ["product_id", 2], ["created_at", "2016-12-05 17:23:51.492193"], ["updated_at", "2016-12-05 17:23:51.492193"]]
258
-  (0.1ms) RELEASE SAVEPOINT active_record_1
259
-  (0.1ms) ROLLBACK
260
-  (0.1ms) BEGIN
261
- ------------------------------------------------
262
- RecordsTest: test_associated_translation_edition
263
- ------------------------------------------------
264
-  (0.1ms) SAVEPOINT active_record_1
265
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
266
- SQL (0.2ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 17:23:51.496426"], ["updated_at", "2016-12-05 17:23:51.496426"]]
267
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "name"], ["product_id", 3], ["created_at", "2016-12-05 17:23:51.497205"], ["updated_at", "2016-12-05 17:23:51.497205"]]
268
-  (0.1ms) RELEASE SAVEPOINT active_record_1
269
-  (0.1ms) SAVEPOINT active_record_1
270
- ProductTranslation Exists (0.4ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" = 3 AND "product_translations"."id" != 3 AND "product_translations"."locale" = 'en') LIMIT 1
271
- SQL (0.3ms) UPDATE "product_translations" SET "name" = $1, "updated_at" = $2 WHERE "product_translations"."id" = $3 [["name", "new name"], ["updated_at", "2016-12-05 17:23:51.500273"], ["id", 3]]
272
-  (0.1ms) RELEASE SAVEPOINT active_record_1
273
-  (0.1ms) ROLLBACK
274
-  (0.1ms) BEGIN
275
- -------------------------------
276
- RecordsTest: test_locale_change
277
- -------------------------------
278
-  (0.1ms) SAVEPOINT active_record_1
279
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
280
- SQL (0.2ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 17:23:51.520839"], ["updated_at", "2016-12-05 17:23:51.520839"]]
281
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "name"], ["product_id", 4], ["created_at", "2016-12-05 17:23:51.521586"], ["updated_at", "2016-12-05 17:23:51.521586"]]
282
-  (0.2ms) RELEASE SAVEPOINT active_record_1
283
-  (0.1ms) SAVEPOINT active_record_1
284
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" = 4 AND "product_translations"."locale" = 'es') LIMIT 1
285
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "new name"], ["product_id", 4], ["created_at", "2016-12-05 17:23:51.523897"], ["updated_at", "2016-12-05 17:23:51.523897"]]
286
-  (0.1ms) RELEASE SAVEPOINT active_record_1
287
-  (0.2ms) ROLLBACK
288
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
289
-  (0.2ms) BEGIN
290
- -------------------------------------------------
291
- RecordsTest: test_associated_translation_deletion
292
- -------------------------------------------------
293
-  (0.2ms) SAVEPOINT active_record_1
294
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
295
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 17:24:12.521678"], ["updated_at", "2016-12-05 17:24:12.521678"]]
296
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "name"], ["product_id", 5], ["created_at", "2016-12-05 17:24:12.523221"], ["updated_at", "2016-12-05 17:24:12.523221"]]
297
-  (0.1ms) RELEASE SAVEPOINT active_record_1
298
-  (0.1ms) SAVEPOINT active_record_1
299
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 6]]
300
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 5]]
301
-  (0.1ms) RELEASE SAVEPOINT active_record_1
302
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 LIMIT 1 [["product_id", 5]]
303
-  (0.2ms) ROLLBACK
304
-  (0.1ms) BEGIN
305
- -------------------------------------------------
306
- RecordsTest: test_associated_translation_creation
307
- -------------------------------------------------
308
-  (0.1ms) SAVEPOINT active_record_1
309
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
310
- SQL (0.2ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 17:24:12.536120"], ["updated_at", "2016-12-05 17:24:12.536120"]]
311
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "name"], ["product_id", 6], ["created_at", "2016-12-05 17:24:12.536919"], ["updated_at", "2016-12-05 17:24:12.536919"]]
312
-  (0.2ms) RELEASE SAVEPOINT active_record_1
313
-  (0.1ms) ROLLBACK
314
-  (0.1ms) BEGIN
315
- ------------------------------------------------
316
- RecordsTest: test_associated_translation_edition
317
- ------------------------------------------------
318
-  (0.1ms) SAVEPOINT active_record_1
319
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
320
- SQL (0.2ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 17:24:12.539997"], ["updated_at", "2016-12-05 17:24:12.539997"]]
321
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "name"], ["product_id", 7], ["created_at", "2016-12-05 17:24:12.540686"], ["updated_at", "2016-12-05 17:24:12.540686"]]
322
-  (0.2ms) RELEASE SAVEPOINT active_record_1
323
-  (0.1ms) SAVEPOINT active_record_1
324
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" = 7 AND "product_translations"."id" != 8 AND "product_translations"."locale" = 'en') LIMIT 1
325
- SQL (0.2ms) UPDATE "product_translations" SET "name" = $1, "updated_at" = $2 WHERE "product_translations"."id" = $3 [["name", "new name"], ["updated_at", "2016-12-05 17:24:12.543341"], ["id", 8]]
326
-  (0.2ms) RELEASE SAVEPOINT active_record_1
327
-  (0.1ms) ROLLBACK
328
-  (0.1ms) BEGIN
329
- -------------------------------
330
- RecordsTest: test_locale_change
331
- -------------------------------
332
-  (0.1ms) SAVEPOINT active_record_1
333
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
334
- SQL (0.2ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 17:24:12.546707"], ["updated_at", "2016-12-05 17:24:12.546707"]]
335
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "name"], ["product_id", 8], ["created_at", "2016-12-05 17:24:12.547410"], ["updated_at", "2016-12-05 17:24:12.547410"]]
336
-  (0.1ms) RELEASE SAVEPOINT active_record_1
337
-  (0.2ms) SAVEPOINT active_record_1
338
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" = 8 AND "product_translations"."locale" = 'es') LIMIT 1
339
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "new name"], ["product_id", 8], ["created_at", "2016-12-05 17:24:12.549840"], ["updated_at", "2016-12-05 17:24:12.549840"]]
340
-  (0.2ms) RELEASE SAVEPOINT active_record_1
341
-  (0.1ms) ROLLBACK
342
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
343
-  (0.4ms) BEGIN
344
- ---------------------------
345
- RecordTest: test_persistent
346
- ---------------------------
347
-  (0.1ms) ROLLBACK
348
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
349
-  (0.2ms) BEGIN
350
- ----------------------------
351
- ProductTest: test_persistent
352
- ----------------------------
353
-  (0.1ms) ROLLBACK
354
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
355
-  (0.2ms) BEGIN
356
- ----------------------------
357
- ProductTest: test_persistent
358
- ----------------------------
359
-  (0.2ms) ROLLBACK
360
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
361
-  (0.2ms) BEGIN
362
- ----------------------------
363
- ProductTest: test_persistent
364
- ----------------------------
365
-  (0.1ms) SAVEPOINT active_record_1
366
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
367
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
368
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 17:31:33.400904"], ["updated_at", "2016-12-05 17:31:33.400904"]]
369
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 9], ["created_at", "2016-12-05 17:31:33.402431"], ["updated_at", "2016-12-05 17:31:33.402431"]]
370
- SQL (4.5ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 9], ["created_at", "2016-12-05 17:31:33.403518"], ["updated_at", "2016-12-05 17:31:33.403518"]]
371
-  (0.2ms) RELEASE SAVEPOINT active_record_1
372
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 9]]
373
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 9]]
374
-  (0.2ms) ROLLBACK
375
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
376
-  (0.2ms) BEGIN
377
- ----------------------------
378
- ProductTest: test_persistent
379
- ----------------------------
380
-  (0.1ms) SAVEPOINT active_record_1
381
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
382
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
383
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 17:45:59.690621"], ["updated_at", "2016-12-05 17:45:59.690621"]]
384
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 10], ["created_at", "2016-12-05 17:45:59.692029"], ["updated_at", "2016-12-05 17:45:59.692029"]]
385
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 10], ["created_at", "2016-12-05 17:45:59.692968"], ["updated_at", "2016-12-05 17:45:59.692968"]]
386
-  (0.1ms) RELEASE SAVEPOINT active_record_1
387
- Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 10]]
388
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 10]]
389
-  (0.4ms) ROLLBACK
390
-  (0.2ms) BEGIN
391
- ----------------------------
392
- GeneratorsTest: test_install
393
- ----------------------------
394
-  (0.2ms) ROLLBACK
395
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
396
-  (0.2ms) BEGIN
397
- ----------------------------
398
- ProductTest: test_persistent
399
- ----------------------------
400
-  (0.1ms) SAVEPOINT active_record_1
401
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
402
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
403
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 17:46:07.402557"], ["updated_at", "2016-12-05 17:46:07.402557"]]
404
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 11], ["created_at", "2016-12-05 17:46:07.404073"], ["updated_at", "2016-12-05 17:46:07.404073"]]
405
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 11], ["created_at", "2016-12-05 17:46:07.405122"], ["updated_at", "2016-12-05 17:46:07.405122"]]
406
-  (0.2ms) RELEASE SAVEPOINT active_record_1
407
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 11]]
408
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 11]]
409
-  (0.2ms) ROLLBACK
410
-  (0.1ms) BEGIN
411
- ----------------------------
412
- GeneratorsTest: test_install
413
- ----------------------------
414
-  (0.3ms) ROLLBACK
415
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
416
-  (0.2ms) BEGIN
417
- ----------------------------
418
- GeneratorsTest: test_install
419
- ----------------------------
420
-  (0.2ms) ROLLBACK
421
-  (0.2ms) BEGIN
422
- ----------------------------
423
- ProductTest: test_persistent
424
- ----------------------------
425
-  (0.2ms) SAVEPOINT active_record_1
426
- ProductTranslation Exists (1.1ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
427
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
428
- SQL (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 17:47:05.106751"], ["updated_at", "2016-12-05 17:47:05.106751"]]
429
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 12], ["created_at", "2016-12-05 17:47:05.108955"], ["updated_at", "2016-12-05 17:47:05.108955"]]
430
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 12], ["created_at", "2016-12-05 17:47:05.110240"], ["updated_at", "2016-12-05 17:47:05.110240"]]
431
-  (0.1ms) RELEASE SAVEPOINT active_record_1
432
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 12]]
433
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 12]]
434
-  (0.1ms) SAVEPOINT active_record_1
435
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 17]]
436
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 18]]
437
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 12]]
438
-  (0.1ms) RELEASE SAVEPOINT active_record_1
439
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
440
-  (0.1ms) ROLLBACK
441
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
442
-  (0.2ms) BEGIN
443
- ----------------------------
444
- ProductTest: test_persistent
445
- ----------------------------
446
-  (0.2ms) SAVEPOINT active_record_1
447
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
448
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
449
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:48:43.884595"], ["updated_at", "2016-12-05 20:48:43.884595"]]
450
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 13], ["created_at", "2016-12-05 20:48:43.886216"], ["updated_at", "2016-12-05 20:48:43.886216"]]
451
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 13], ["created_at", "2016-12-05 20:48:43.887271"], ["updated_at", "2016-12-05 20:48:43.887271"]]
452
-  (0.1ms) RELEASE SAVEPOINT active_record_1
453
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 13]]
454
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 13]]
455
-  (0.1ms) SAVEPOINT active_record_1
456
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 19]]
457
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 20]]
458
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 13]]
459
-  (0.1ms) RELEASE SAVEPOINT active_record_1
460
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
461
-  (0.2ms) ROLLBACK
462
-  (0.1ms) BEGIN
463
- ----------------------------
464
- GeneratorsTest: test_install
465
- ----------------------------
466
-  (0.2ms) ROLLBACK
467
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
468
-  (0.2ms) BEGIN
469
- ----------------------------
470
- GeneratorsTest: test_install
471
- ----------------------------
472
-  (0.2ms) ROLLBACK
473
-  (0.2ms) BEGIN
474
- ----------------------------
475
- ProductTest: test_persistent
476
- ----------------------------
477
-  (0.1ms) SAVEPOINT active_record_1
478
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
479
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
480
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:49:24.578261"], ["updated_at", "2016-12-05 20:49:24.578261"]]
481
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 14], ["created_at", "2016-12-05 20:49:24.579804"], ["updated_at", "2016-12-05 20:49:24.579804"]]
482
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 14], ["created_at", "2016-12-05 20:49:24.580854"], ["updated_at", "2016-12-05 20:49:24.580854"]]
483
-  (0.1ms) RELEASE SAVEPOINT active_record_1
484
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 14]]
485
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 14]]
486
-  (0.1ms) SAVEPOINT active_record_1
487
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 21]]
488
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 22]]
489
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 14]]
490
-  (0.2ms) RELEASE SAVEPOINT active_record_1
491
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
492
-  (0.2ms) ROLLBACK
493
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
494
-  (0.2ms) BEGIN
495
- ----------------------------
496
- ProductTest: test_persistent
497
- ----------------------------
498
-  (0.2ms) SAVEPOINT active_record_1
499
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
500
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
501
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:49:35.962864"], ["updated_at", "2016-12-05 20:49:35.962864"]]
502
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 15], ["created_at", "2016-12-05 20:49:35.964371"], ["updated_at", "2016-12-05 20:49:35.964371"]]
503
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 15], ["created_at", "2016-12-05 20:49:35.965388"], ["updated_at", "2016-12-05 20:49:35.965388"]]
504
-  (0.1ms) RELEASE SAVEPOINT active_record_1
505
- Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 15]]
506
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 15]]
507
-  (0.1ms) SAVEPOINT active_record_1
508
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 23]]
509
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 24]]
510
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 15]]
511
-  (0.1ms) RELEASE SAVEPOINT active_record_1
512
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
513
-  (0.2ms) ROLLBACK
514
-  (1.1ms) BEGIN
515
- ----------------------------
516
- GeneratorsTest: test_install
517
- ----------------------------
518
-  (0.2ms) ROLLBACK
519
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
520
-  (0.2ms) BEGIN
521
- ----------------------------
522
- ProductTest: test_persistent
523
- ----------------------------
524
-  (0.2ms) SAVEPOINT active_record_1
525
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
526
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
527
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:49:50.010384"], ["updated_at", "2016-12-05 20:49:50.010384"]]
528
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 16], ["created_at", "2016-12-05 20:49:50.011848"], ["updated_at", "2016-12-05 20:49:50.011848"]]
529
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 16], ["created_at", "2016-12-05 20:49:50.012939"], ["updated_at", "2016-12-05 20:49:50.012939"]]
530
-  (0.1ms) RELEASE SAVEPOINT active_record_1
531
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 16]]
532
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 16]]
533
-  (0.1ms) SAVEPOINT active_record_1
534
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 25]]
535
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 26]]
536
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 16]]
537
-  (0.1ms) RELEASE SAVEPOINT active_record_1
538
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
539
-  (0.2ms) ROLLBACK
540
-  (0.1ms) BEGIN
541
- ----------------------------
542
- GeneratorsTest: test_install
543
- ----------------------------
544
-  (0.3ms) ROLLBACK
545
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
546
-  (0.2ms) BEGIN
547
- ----------------------------
548
- ProductTest: test_persistent
549
- ----------------------------
550
-  (0.1ms) SAVEPOINT active_record_1
551
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
552
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
553
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:50:18.791509"], ["updated_at", "2016-12-05 20:50:18.791509"]]
554
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 17], ["created_at", "2016-12-05 20:50:18.793006"], ["updated_at", "2016-12-05 20:50:18.793006"]]
555
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 17], ["created_at", "2016-12-05 20:50:18.794093"], ["updated_at", "2016-12-05 20:50:18.794093"]]
556
-  (0.1ms) RELEASE SAVEPOINT active_record_1
557
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 17]]
558
- ProductTranslation Load (0.3ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 17]]
559
-  (0.1ms) SAVEPOINT active_record_1
560
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 27]]
561
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 28]]
562
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 17]]
563
-  (0.1ms) RELEASE SAVEPOINT active_record_1
564
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
565
-  (0.2ms) ROLLBACK
566
-  (0.1ms) BEGIN
567
- ----------------------------
568
- GeneratorsTest: test_install
569
- ----------------------------
570
-  (0.2ms) ROLLBACK
571
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
572
-  (0.2ms) BEGIN
573
- ----------------------------
574
- GeneratorsTest: test_install
575
- ----------------------------
576
-  (0.2ms) ROLLBACK
577
-  (0.2ms) BEGIN
578
- ----------------------------
579
- ProductTest: test_persistent
580
- ----------------------------
581
-  (0.3ms) SAVEPOINT active_record_1
582
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
583
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
584
- SQL (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:51:16.603876"], ["updated_at", "2016-12-05 20:51:16.603876"]]
585
- SQL (1.4ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 18], ["created_at", "2016-12-05 20:51:16.605821"], ["updated_at", "2016-12-05 20:51:16.605821"]]
586
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 18], ["created_at", "2016-12-05 20:51:16.608397"], ["updated_at", "2016-12-05 20:51:16.608397"]]
587
-  (0.1ms) RELEASE SAVEPOINT active_record_1
588
- Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 18]]
589
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 18]]
590
-  (0.1ms) SAVEPOINT active_record_1
591
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 29]]
592
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 30]]
593
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 18]]
594
-  (0.1ms) RELEASE SAVEPOINT active_record_1
595
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
596
-  (0.1ms) ROLLBACK
597
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
598
-  (0.2ms) BEGIN
599
- ----------------------------
600
- ProductTest: test_persistent
601
- ----------------------------
602
-  (0.2ms) SAVEPOINT active_record_1
603
- ProductTranslation Exists (0.5ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
604
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
605
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:51:48.575913"], ["updated_at", "2016-12-05 20:51:48.575913"]]
606
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 19], ["created_at", "2016-12-05 20:51:48.577414"], ["updated_at", "2016-12-05 20:51:48.577414"]]
607
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 19], ["created_at", "2016-12-05 20:51:48.578462"], ["updated_at", "2016-12-05 20:51:48.578462"]]
608
-  (0.1ms) RELEASE SAVEPOINT active_record_1
609
- Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 19]]
610
- ProductTranslation Load (0.3ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 19]]
611
-  (0.1ms) SAVEPOINT active_record_1
612
- SQL (0.3ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 31]]
613
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 32]]
614
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 19]]
615
-  (0.1ms) RELEASE SAVEPOINT active_record_1
616
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
617
-  (0.2ms) ROLLBACK
618
-  (0.1ms) BEGIN
619
- ----------------------------
620
- GeneratorsTest: test_install
621
- ----------------------------
622
-  (0.2ms) ROLLBACK
623
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
624
-  (0.2ms) BEGIN
625
- ----------------------------
626
- GeneratorsTest: test_install
627
- ----------------------------
628
-  (0.3ms) ROLLBACK
629
-  (0.2ms) BEGIN
630
- ----------------------------
631
- ProductTest: test_persistent
632
- ----------------------------
633
-  (0.3ms) SAVEPOINT active_record_1
634
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
635
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
636
- SQL (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:52:22.328083"], ["updated_at", "2016-12-05 20:52:22.328083"]]
637
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 20], ["created_at", "2016-12-05 20:52:22.329980"], ["updated_at", "2016-12-05 20:52:22.329980"]]
638
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 20], ["created_at", "2016-12-05 20:52:22.331417"], ["updated_at", "2016-12-05 20:52:22.331417"]]
639
-  (0.1ms) RELEASE SAVEPOINT active_record_1
640
- Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 20]]
641
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 20]]
642
-  (0.1ms) SAVEPOINT active_record_1
643
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 33]]
644
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 34]]
645
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 20]]
646
-  (0.1ms) RELEASE SAVEPOINT active_record_1
647
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
648
-  (0.2ms) ROLLBACK
649
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
650
-  (0.2ms) BEGIN
651
- ----------------------------
652
- GeneratorsTest: test_install
653
- ----------------------------
654
-  (0.2ms) ROLLBACK
655
-  (0.2ms) BEGIN
656
- ----------------------------
657
- ProductTest: test_persistent
658
- ----------------------------
659
-  (0.3ms) SAVEPOINT active_record_1
660
- ProductTranslation Exists (0.8ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
661
- ProductTranslation Exists (1.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
662
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:52:43.615425"], ["updated_at", "2016-12-05 20:52:43.615425"]]
663
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 21], ["created_at", "2016-12-05 20:52:43.617180"], ["updated_at", "2016-12-05 20:52:43.617180"]]
664
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 21], ["created_at", "2016-12-05 20:52:43.618306"], ["updated_at", "2016-12-05 20:52:43.618306"]]
665
-  (0.1ms) RELEASE SAVEPOINT active_record_1
666
- Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 21]]
667
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 21]]
668
-  (0.1ms) SAVEPOINT active_record_1
669
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 35]]
670
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 36]]
671
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 21]]
672
-  (0.1ms) RELEASE SAVEPOINT active_record_1
673
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
674
-  (0.1ms) ROLLBACK
675
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
676
-  (0.3ms) BEGIN
677
- ----------------------------
678
- ProductTest: test_persistent
679
- ----------------------------
680
-  (0.1ms) SAVEPOINT active_record_1
681
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
682
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
683
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:52:53.968776"], ["updated_at", "2016-12-05 20:52:53.968776"]]
684
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 22], ["created_at", "2016-12-05 20:52:53.970275"], ["updated_at", "2016-12-05 20:52:53.970275"]]
685
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 22], ["created_at", "2016-12-05 20:52:53.971314"], ["updated_at", "2016-12-05 20:52:53.971314"]]
686
-  (0.1ms) RELEASE SAVEPOINT active_record_1
687
- Product Load (0.5ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 22]]
688
- ProductTranslation Load (0.3ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 22]]
689
-  (0.1ms) SAVEPOINT active_record_1
690
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 37]]
691
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 38]]
692
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 22]]
693
-  (0.1ms) RELEASE SAVEPOINT active_record_1
694
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
695
-  (0.1ms) ROLLBACK
696
-  (0.1ms) BEGIN
697
- ----------------------------
698
- GeneratorsTest: test_install
699
- ----------------------------
700
-  (0.3ms) ROLLBACK
701
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
702
-  (0.3ms) BEGIN
703
- ----------------------------
704
- ProductTest: test_persistent
705
- ----------------------------
706
-  (0.2ms) SAVEPOINT active_record_1
707
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
708
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
709
- SQL (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:53:08.911379"], ["updated_at", "2016-12-05 20:53:08.911379"]]
710
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 23], ["created_at", "2016-12-05 20:53:08.913127"], ["updated_at", "2016-12-05 20:53:08.913127"]]
711
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 23], ["created_at", "2016-12-05 20:53:08.914255"], ["updated_at", "2016-12-05 20:53:08.914255"]]
712
-  (0.1ms) RELEASE SAVEPOINT active_record_1
713
- Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 23]]
714
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 23]]
715
-  (0.1ms) SAVEPOINT active_record_1
716
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 39]]
717
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 40]]
718
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 23]]
719
-  (0.1ms) RELEASE SAVEPOINT active_record_1
720
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
721
-  (0.2ms) ROLLBACK
722
-  (0.1ms) BEGIN
723
- ----------------------------
724
- GeneratorsTest: test_install
725
- ----------------------------
726
-  (0.2ms) ROLLBACK
727
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
728
-  (0.3ms) BEGIN
729
- ----------------------------
730
- GeneratorsTest: test_install
731
- ----------------------------
732
-  (0.3ms) ROLLBACK
733
-  (0.2ms) BEGIN
734
- ----------------------------
735
- ProductTest: test_persistent
736
- ----------------------------
737
-  (0.1ms) SAVEPOINT active_record_1
738
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
739
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
740
- SQL (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:53:16.968532"], ["updated_at", "2016-12-05 20:53:16.968532"]]
741
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 24], ["created_at", "2016-12-05 20:53:16.970319"], ["updated_at", "2016-12-05 20:53:16.970319"]]
742
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 24], ["created_at", "2016-12-05 20:53:16.971788"], ["updated_at", "2016-12-05 20:53:16.971788"]]
743
-  (0.2ms) RELEASE SAVEPOINT active_record_1
744
- Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 24]]
745
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 24]]
746
-  (0.1ms) SAVEPOINT active_record_1
747
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 41]]
748
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 42]]
749
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 24]]
750
-  (0.1ms) RELEASE SAVEPOINT active_record_1
751
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
752
-  (0.2ms) ROLLBACK
753
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
754
-  (0.3ms) BEGIN
755
- ----------------------------
756
- ProductTest: test_persistent
757
- ----------------------------
758
-  (0.2ms) SAVEPOINT active_record_1
759
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
760
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
761
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:54:11.089922"], ["updated_at", "2016-12-05 20:54:11.089922"]]
762
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 25], ["created_at", "2016-12-05 20:54:11.091564"], ["updated_at", "2016-12-05 20:54:11.091564"]]
763
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 25], ["created_at", "2016-12-05 20:54:11.092641"], ["updated_at", "2016-12-05 20:54:11.092641"]]
764
-  (0.1ms) RELEASE SAVEPOINT active_record_1
765
- Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 25]]
766
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 25]]
767
-  (0.1ms) SAVEPOINT active_record_1
768
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 43]]
769
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 44]]
770
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 25]]
771
-  (0.1ms) RELEASE SAVEPOINT active_record_1
772
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
773
-  (0.2ms) ROLLBACK
774
-  (0.2ms) BEGIN
775
- ----------------------------
776
- GeneratorsTest: test_install
777
- ----------------------------
778
-  (0.3ms) ROLLBACK
779
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
780
-  (0.2ms) BEGIN
781
- ----------------------------
782
- GeneratorsTest: test_install
783
- ----------------------------
784
-  (0.3ms) ROLLBACK
785
-  (0.2ms) BEGIN
786
- ----------------------------
787
- ProductTest: test_persistent
788
- ----------------------------
789
-  (0.1ms) SAVEPOINT active_record_1
790
- ProductTranslation Exists (0.8ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
791
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
792
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:55:03.524735"], ["updated_at", "2016-12-05 20:55:03.524735"]]
793
- SQL (0.4ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 26], ["created_at", "2016-12-05 20:55:03.526709"], ["updated_at", "2016-12-05 20:55:03.526709"]]
794
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 26], ["created_at", "2016-12-05 20:55:03.529500"], ["updated_at", "2016-12-05 20:55:03.529500"]]
795
-  (0.1ms) RELEASE SAVEPOINT active_record_1
796
- Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 26]]
797
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 26]]
798
-  (0.1ms) SAVEPOINT active_record_1
799
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 45]]
800
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 46]]
801
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 26]]
802
-  (0.1ms) RELEASE SAVEPOINT active_record_1
803
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
804
-  (0.2ms) ROLLBACK
805
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
806
-  (0.3ms) BEGIN
807
- ----------------------------
808
- ProductTest: test_persistent
809
- ----------------------------
810
-  (0.2ms) SAVEPOINT active_record_1
811
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
812
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
813
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:55:12.506246"], ["updated_at", "2016-12-05 20:55:12.506246"]]
814
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 27], ["created_at", "2016-12-05 20:55:12.507811"], ["updated_at", "2016-12-05 20:55:12.507811"]]
815
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 27], ["created_at", "2016-12-05 20:55:12.508991"], ["updated_at", "2016-12-05 20:55:12.508991"]]
816
-  (0.2ms) RELEASE SAVEPOINT active_record_1
817
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 27]]
818
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 27]]
819
-  (0.1ms) SAVEPOINT active_record_1
820
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 47]]
821
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 48]]
822
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 27]]
823
-  (0.1ms) RELEASE SAVEPOINT active_record_1
824
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
825
-  (0.2ms) ROLLBACK
826
-  (0.1ms) BEGIN
827
- ----------------------------
828
- GeneratorsTest: test_install
829
- ----------------------------
830
-  (0.2ms) ROLLBACK
831
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
832
-  (0.2ms) BEGIN
833
- ----------------------------
834
- ProductTest: test_persistent
835
- ----------------------------
836
-  (0.2ms) SAVEPOINT active_record_1
837
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
838
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
839
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:55:24.369251"], ["updated_at", "2016-12-05 20:55:24.369251"]]
840
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 28], ["created_at", "2016-12-05 20:55:24.370934"], ["updated_at", "2016-12-05 20:55:24.370934"]]
841
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 28], ["created_at", "2016-12-05 20:55:24.372177"], ["updated_at", "2016-12-05 20:55:24.372177"]]
842
-  (0.2ms) RELEASE SAVEPOINT active_record_1
843
- Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 28]]
844
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 28]]
845
-  (0.1ms) SAVEPOINT active_record_1
846
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 49]]
847
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 50]]
848
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 28]]
849
-  (0.1ms) RELEASE SAVEPOINT active_record_1
850
-  (0.3ms) SELECT COUNT(*) FROM "product_translations"
851
-  (0.2ms) ROLLBACK
852
-  (0.2ms) BEGIN
853
- ----------------------------
854
- GeneratorsTest: test_install
855
- ----------------------------
856
-  (0.3ms) ROLLBACK
857
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
858
-  (0.3ms) BEGIN
859
- ----------------------------
860
- ProductTest: test_persistent
861
- ----------------------------
862
-  (0.2ms) SAVEPOINT active_record_1
863
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
864
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
865
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:56:25.348765"], ["updated_at", "2016-12-05 20:56:25.348765"]]
866
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 29], ["created_at", "2016-12-05 20:56:25.350411"], ["updated_at", "2016-12-05 20:56:25.350411"]]
867
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 29], ["created_at", "2016-12-05 20:56:25.351630"], ["updated_at", "2016-12-05 20:56:25.351630"]]
868
-  (0.2ms) RELEASE SAVEPOINT active_record_1
869
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 29]]
870
- ProductTranslation Load (0.3ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 29]]
871
-  (0.1ms) SAVEPOINT active_record_1
872
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 51]]
873
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 52]]
874
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 29]]
875
-  (0.1ms) RELEASE SAVEPOINT active_record_1
876
-  (0.3ms) SELECT COUNT(*) FROM "product_translations"
877
-  (0.2ms) ROLLBACK
878
-  (0.1ms) BEGIN
879
- ----------------------------
880
- GeneratorsTest: test_install
881
- ----------------------------
882
-  (0.2ms) ROLLBACK
883
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
884
-  (0.2ms) BEGIN
885
- ----------------------------
886
- GeneratorsTest: test_install
887
- ----------------------------
888
-  (0.6ms) ROLLBACK
889
-  (0.2ms) BEGIN
890
- ----------------------------
891
- ProductTest: test_persistent
892
- ----------------------------
893
-  (0.3ms) SAVEPOINT active_record_1
894
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
895
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
896
- SQL (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:57:50.331754"], ["updated_at", "2016-12-05 20:57:50.331754"]]
897
- SQL (0.4ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 30], ["created_at", "2016-12-05 20:57:50.337989"], ["updated_at", "2016-12-05 20:57:50.337989"]]
898
- SQL (0.4ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 30], ["created_at", "2016-12-05 20:57:50.344390"], ["updated_at", "2016-12-05 20:57:50.344390"]]
899
-  (0.3ms) RELEASE SAVEPOINT active_record_1
900
- Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 30]]
901
- ProductTranslation Load (0.4ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 30]]
902
-  (0.2ms) SAVEPOINT active_record_1
903
- SQL (0.3ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 53]]
904
- SQL (0.3ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 54]]
905
- SQL (0.3ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 30]]
906
-  (0.2ms) RELEASE SAVEPOINT active_record_1
907
-  (0.3ms) SELECT COUNT(*) FROM "product_translations"
908
-  (0.2ms) ROLLBACK
909
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
910
-  (0.2ms) BEGIN
911
- ----------------------------
912
- ProductTest: test_persistent
913
- ----------------------------
914
-  (0.2ms) SAVEPOINT active_record_1
915
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
916
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
917
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:58:10.531196"], ["updated_at", "2016-12-05 20:58:10.531196"]]
918
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 31], ["created_at", "2016-12-05 20:58:10.532685"], ["updated_at", "2016-12-05 20:58:10.532685"]]
919
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 31], ["created_at", "2016-12-05 20:58:10.533774"], ["updated_at", "2016-12-05 20:58:10.533774"]]
920
-  (0.2ms) RELEASE SAVEPOINT active_record_1
921
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 31]]
922
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 31]]
923
-  (0.1ms) SAVEPOINT active_record_1
924
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 55]]
925
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 56]]
926
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 31]]
927
-  (0.1ms) RELEASE SAVEPOINT active_record_1
928
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
929
-  (0.2ms) ROLLBACK
930
-  (0.1ms) BEGIN
931
- ----------------------------
932
- GeneratorsTest: test_install
933
- ----------------------------
934
-  (0.4ms) ROLLBACK
935
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
936
-  (0.2ms) BEGIN
937
- ----------------------------
938
- ProductTest: test_persistent
939
- ----------------------------
940
-  (0.1ms) SAVEPOINT active_record_1
941
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
942
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
943
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 20:59:19.357281"], ["updated_at", "2016-12-05 20:59:19.357281"]]
944
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 32], ["created_at", "2016-12-05 20:59:19.358819"], ["updated_at", "2016-12-05 20:59:19.358819"]]
945
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 32], ["created_at", "2016-12-05 20:59:19.359854"], ["updated_at", "2016-12-05 20:59:19.359854"]]
946
-  (0.2ms) RELEASE SAVEPOINT active_record_1
947
- Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 32]]
948
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 32]]
949
-  (0.1ms) SAVEPOINT active_record_1
950
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 57]]
951
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 58]]
952
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 32]]
953
-  (0.1ms) RELEASE SAVEPOINT active_record_1
954
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
955
-  (0.2ms) ROLLBACK
956
-  (0.1ms) BEGIN
957
- ----------------------------
958
- GeneratorsTest: test_install
959
- ----------------------------
960
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
961
-  (0.2ms) BEGIN
962
- ----------------------------
963
- ProductTest: test_persistent
964
- ----------------------------
965
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
966
-  (0.2ms) BEGIN
967
- ----------------------------
968
- ProductTest: test_persistent
969
- ----------------------------
970
-  (0.2ms) SAVEPOINT active_record_1
971
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
972
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
973
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:01:13.392406"], ["updated_at", "2016-12-05 21:01:13.392406"]]
974
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 33], ["created_at", "2016-12-05 21:01:13.393920"], ["updated_at", "2016-12-05 21:01:13.393920"]]
975
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 33], ["created_at", "2016-12-05 21:01:13.395075"], ["updated_at", "2016-12-05 21:01:13.395075"]]
976
-  (0.1ms) RELEASE SAVEPOINT active_record_1
977
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 33]]
978
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 33]]
979
-  (0.1ms) SAVEPOINT active_record_1
980
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 59]]
981
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 60]]
982
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 33]]
983
-  (0.2ms) RELEASE SAVEPOINT active_record_1
984
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
985
-  (0.2ms) ROLLBACK
986
-  (0.1ms) BEGIN
987
- ----------------------------
988
- GeneratorsTest: test_install
989
- ----------------------------
990
-  (0.3ms) ROLLBACK
991
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
992
-  (0.3ms) BEGIN
993
- ----------------------------
994
- ProductTest: test_persistent
995
- ----------------------------
996
-  (0.1ms) SAVEPOINT active_record_1
997
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
998
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
999
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:01:42.483432"], ["updated_at", "2016-12-05 21:01:42.483432"]]
1000
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 34], ["created_at", "2016-12-05 21:01:42.484993"], ["updated_at", "2016-12-05 21:01:42.484993"]]
1001
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 34], ["created_at", "2016-12-05 21:01:42.486097"], ["updated_at", "2016-12-05 21:01:42.486097"]]
1002
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1003
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 34]]
1004
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 34]]
1005
-  (0.1ms) SAVEPOINT active_record_1
1006
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 61]]
1007
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 62]]
1008
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 34]]
1009
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1010
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1011
-  (0.2ms) ROLLBACK
1012
-  (0.1ms) BEGIN
1013
- ----------------------------
1014
- GeneratorsTest: test_install
1015
- ----------------------------
1016
-  (0.2ms) ROLLBACK
1017
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1018
-  (0.2ms) BEGIN
1019
- ----------------------------
1020
- GeneratorsTest: test_install
1021
- ----------------------------
1022
-  (0.2ms) ROLLBACK
1023
-  (0.1ms) BEGIN
1024
- ----------------------------
1025
- ProductTest: test_persistent
1026
- ----------------------------
1027
-  (0.1ms) SAVEPOINT active_record_1
1028
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1029
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1030
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:03:25.350735"], ["updated_at", "2016-12-05 21:03:25.350735"]]
1031
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 35], ["created_at", "2016-12-05 21:03:25.352354"], ["updated_at", "2016-12-05 21:03:25.352354"]]
1032
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 35], ["created_at", "2016-12-05 21:03:25.353502"], ["updated_at", "2016-12-05 21:03:25.353502"]]
1033
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1034
- Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 35]]
1035
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 35]]
1036
-  (0.1ms) SAVEPOINT active_record_1
1037
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 63]]
1038
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 64]]
1039
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 35]]
1040
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1041
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1042
-  (0.2ms) ROLLBACK
1043
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1044
-  (0.2ms) BEGIN
1045
- ----------------------------
1046
- ProductTest: test_persistent
1047
- ----------------------------
1048
-  (0.1ms) SAVEPOINT active_record_1
1049
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1050
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1051
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:03:41.988114"], ["updated_at", "2016-12-05 21:03:41.988114"]]
1052
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 36], ["created_at", "2016-12-05 21:03:41.989694"], ["updated_at", "2016-12-05 21:03:41.989694"]]
1053
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 36], ["created_at", "2016-12-05 21:03:41.990814"], ["updated_at", "2016-12-05 21:03:41.990814"]]
1054
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1055
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 36]]
1056
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 36]]
1057
-  (0.1ms) SAVEPOINT active_record_1
1058
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 65]]
1059
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 66]]
1060
- SQL (0.3ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 36]]
1061
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1062
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1063
-  (0.2ms) ROLLBACK
1064
-  (0.1ms) BEGIN
1065
- ----------------------------
1066
- GeneratorsTest: test_install
1067
- ----------------------------
1068
-  (0.3ms) ROLLBACK
1069
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1070
-  (0.2ms) BEGIN
1071
- ----------------------------
1072
- ProductTest: test_persistent
1073
- ----------------------------
1074
-  (0.2ms) SAVEPOINT active_record_1
1075
- ProductTranslation Exists (0.9ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1076
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1077
- SQL (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:03:51.258805"], ["updated_at", "2016-12-05 21:03:51.258805"]]
1078
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 37], ["created_at", "2016-12-05 21:03:51.260656"], ["updated_at", "2016-12-05 21:03:51.260656"]]
1079
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 37], ["created_at", "2016-12-05 21:03:51.262151"], ["updated_at", "2016-12-05 21:03:51.262151"]]
1080
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1081
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 37]]
1082
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 37]]
1083
-  (0.1ms) SAVEPOINT active_record_1
1084
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 67]]
1085
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 68]]
1086
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 37]]
1087
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1088
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1089
-  (0.1ms) ROLLBACK
1090
-  (0.1ms) BEGIN
1091
- ----------------------------
1092
- GeneratorsTest: test_install
1093
- ----------------------------
1094
-  (0.3ms) ROLLBACK
1095
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1096
-  (0.2ms) BEGIN
1097
- ----------------------------
1098
- GeneratorsTest: test_install
1099
- ----------------------------
1100
-  (0.3ms) ROLLBACK
1101
-  (0.2ms) BEGIN
1102
- ----------------------------
1103
- ProductTest: test_persistent
1104
- ----------------------------
1105
-  (0.3ms) SAVEPOINT active_record_1
1106
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1107
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1108
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:04:00.167777"], ["updated_at", "2016-12-05 21:04:00.167777"]]
1109
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 38], ["created_at", "2016-12-05 21:04:00.169471"], ["updated_at", "2016-12-05 21:04:00.169471"]]
1110
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 38], ["created_at", "2016-12-05 21:04:00.170675"], ["updated_at", "2016-12-05 21:04:00.170675"]]
1111
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1112
- Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 38]]
1113
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 38]]
1114
-  (0.1ms) SAVEPOINT active_record_1
1115
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 69]]
1116
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 70]]
1117
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 38]]
1118
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1119
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1120
-  (0.1ms) ROLLBACK
1121
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1122
-  (0.2ms) BEGIN
1123
- ----------------------------
1124
- ProductTest: test_persistent
1125
- ----------------------------
1126
-  (0.2ms) SAVEPOINT active_record_1
1127
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1128
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1129
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:04:10.397263"], ["updated_at", "2016-12-05 21:04:10.397263"]]
1130
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 39], ["created_at", "2016-12-05 21:04:10.398747"], ["updated_at", "2016-12-05 21:04:10.398747"]]
1131
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 39], ["created_at", "2016-12-05 21:04:10.399751"], ["updated_at", "2016-12-05 21:04:10.399751"]]
1132
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1133
- Product Load (0.5ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 39]]
1134
- ProductTranslation Load (0.3ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 39]]
1135
-  (0.1ms) SAVEPOINT active_record_1
1136
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 71]]
1137
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 72]]
1138
- SQL (0.3ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 39]]
1139
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1140
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1141
-  (0.1ms) ROLLBACK
1142
-  (0.1ms) BEGIN
1143
- ----------------------------
1144
- GeneratorsTest: test_install
1145
- ----------------------------
1146
-  (0.2ms) ROLLBACK
1147
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1148
-  (0.3ms) BEGIN
1149
- ----------------------------
1150
- GeneratorsTest: test_install
1151
- ----------------------------
1152
-  (0.3ms) ROLLBACK
1153
-  (0.2ms) BEGIN
1154
- ----------------------------
1155
- ProductTest: test_persistent
1156
- ----------------------------
1157
-  (0.1ms) SAVEPOINT active_record_1
1158
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1159
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1160
- SQL (0.5ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:04:19.284772"], ["updated_at", "2016-12-05 21:04:19.284772"]]
1161
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 40], ["created_at", "2016-12-05 21:04:19.287326"], ["updated_at", "2016-12-05 21:04:19.287326"]]
1162
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 40], ["created_at", "2016-12-05 21:04:19.288533"], ["updated_at", "2016-12-05 21:04:19.288533"]]
1163
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1164
- Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 40]]
1165
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 40]]
1166
-  (0.1ms) SAVEPOINT active_record_1
1167
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 73]]
1168
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 74]]
1169
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 40]]
1170
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1171
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1172
-  (0.1ms) ROLLBACK
1173
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1174
-  (0.2ms) BEGIN
1175
- ----------------------------
1176
- GeneratorsTest: test_install
1177
- ----------------------------
1178
-  (0.3ms) ROLLBACK
1179
-  (0.2ms) BEGIN
1180
- ----------------------------
1181
- ProductTest: test_persistent
1182
- ----------------------------
1183
-  (0.1ms) SAVEPOINT active_record_1
1184
- ProductTranslation Exists (1.5ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1185
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1186
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:05:04.004635"], ["updated_at", "2016-12-05 21:05:04.004635"]]
1187
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 41], ["created_at", "2016-12-05 21:05:04.006311"], ["updated_at", "2016-12-05 21:05:04.006311"]]
1188
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 41], ["created_at", "2016-12-05 21:05:04.007555"], ["updated_at", "2016-12-05 21:05:04.007555"]]
1189
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1190
- Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 41]]
1191
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 41]]
1192
-  (0.1ms) SAVEPOINT active_record_1
1193
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 75]]
1194
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 76]]
1195
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 41]]
1196
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1197
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1198
-  (0.2ms) ROLLBACK
1199
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1200
-  (0.3ms) BEGIN
1201
- ----------------------------
1202
- GeneratorsTest: test_install
1203
- ----------------------------
1204
-  (0.3ms) ROLLBACK
1205
-  (0.1ms) BEGIN
1206
- ----------------------------
1207
- ProductTest: test_persistent
1208
- ----------------------------
1209
-  (0.1ms) SAVEPOINT active_record_1
1210
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1211
- ProductTranslation Exists (0.4ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1212
- SQL (1.1ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:05:10.772839"], ["updated_at", "2016-12-05 21:05:10.772839"]]
1213
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 42], ["created_at", "2016-12-05 21:05:10.775706"], ["updated_at", "2016-12-05 21:05:10.775706"]]
1214
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 42], ["created_at", "2016-12-05 21:05:10.777057"], ["updated_at", "2016-12-05 21:05:10.777057"]]
1215
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1216
- Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 42]]
1217
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 42]]
1218
-  (0.1ms) SAVEPOINT active_record_1
1219
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 77]]
1220
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 78]]
1221
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 42]]
1222
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1223
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1224
-  (0.1ms) ROLLBACK
1225
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1226
-  (0.2ms) BEGIN
1227
- ----------------------------
1228
- GeneratorsTest: test_install
1229
- ----------------------------
1230
-  (0.2ms) ROLLBACK
1231
-  (0.1ms) BEGIN
1232
- ----------------------------
1233
- ProductTest: test_persistent
1234
- ----------------------------
1235
-  (0.1ms) SAVEPOINT active_record_1
1236
- ProductTranslation Exists (1.5ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1237
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1238
- SQL (0.5ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:05:17.269150"], ["updated_at", "2016-12-05 21:05:17.269150"]]
1239
- SQL (0.5ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 43], ["created_at", "2016-12-05 21:05:17.271281"], ["updated_at", "2016-12-05 21:05:17.271281"]]
1240
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 43], ["created_at", "2016-12-05 21:05:17.273743"], ["updated_at", "2016-12-05 21:05:17.273743"]]
1241
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1242
- Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 43]]
1243
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 43]]
1244
-  (0.1ms) SAVEPOINT active_record_1
1245
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 79]]
1246
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 80]]
1247
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 43]]
1248
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1249
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1250
-  (0.1ms) ROLLBACK
1251
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1252
-  (0.2ms) BEGIN
1253
- ----------------------------
1254
- ProductTest: test_persistent
1255
- ----------------------------
1256
-  (0.2ms) SAVEPOINT active_record_1
1257
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1258
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1259
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:05:29.599345"], ["updated_at", "2016-12-05 21:05:29.599345"]]
1260
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 44], ["created_at", "2016-12-05 21:05:29.600815"], ["updated_at", "2016-12-05 21:05:29.600815"]]
1261
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 44], ["created_at", "2016-12-05 21:05:29.601938"], ["updated_at", "2016-12-05 21:05:29.601938"]]
1262
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1263
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 44]]
1264
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 44]]
1265
-  (0.1ms) SAVEPOINT active_record_1
1266
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 81]]
1267
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 82]]
1268
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 44]]
1269
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1270
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1271
-  (0.2ms) ROLLBACK
1272
-  (0.1ms) BEGIN
1273
- ----------------------------
1274
- GeneratorsTest: test_install
1275
- ----------------------------
1276
-  (0.2ms) ROLLBACK
1277
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1278
-  (0.3ms) BEGIN
1279
- ----------------------------
1280
- ProductTest: test_persistent
1281
- ----------------------------
1282
-  (0.2ms) SAVEPOINT active_record_1
1283
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1284
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1285
- SQL (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:05:39.627821"], ["updated_at", "2016-12-05 21:05:39.627821"]]
1286
- SQL (0.5ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 45], ["created_at", "2016-12-05 21:05:39.629455"], ["updated_at", "2016-12-05 21:05:39.629455"]]
1287
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 45], ["created_at", "2016-12-05 21:05:39.631306"], ["updated_at", "2016-12-05 21:05:39.631306"]]
1288
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1289
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 45]]
1290
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 45]]
1291
-  (0.1ms) SAVEPOINT active_record_1
1292
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 83]]
1293
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 84]]
1294
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 45]]
1295
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1296
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1297
-  (0.2ms) ROLLBACK
1298
-  (0.1ms) BEGIN
1299
- ----------------------------
1300
- GeneratorsTest: test_install
1301
- ----------------------------
1302
-  (0.2ms) ROLLBACK
1303
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1304
-  (0.2ms) BEGIN
1305
- ----------------------------
1306
- GeneratorsTest: test_install
1307
- ----------------------------
1308
-  (0.3ms) ROLLBACK
1309
-  (0.1ms) BEGIN
1310
- ----------------------------
1311
- ProductTest: test_persistent
1312
- ----------------------------
1313
-  (0.4ms) SAVEPOINT active_record_1
1314
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1315
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1316
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:05:48.764819"], ["updated_at", "2016-12-05 21:05:48.764819"]]
1317
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 46], ["created_at", "2016-12-05 21:05:48.766470"], ["updated_at", "2016-12-05 21:05:48.766470"]]
1318
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 46], ["created_at", "2016-12-05 21:05:48.767516"], ["updated_at", "2016-12-05 21:05:48.767516"]]
1319
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1320
- Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 46]]
1321
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 46]]
1322
-  (0.1ms) SAVEPOINT active_record_1
1323
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 85]]
1324
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 86]]
1325
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 46]]
1326
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1327
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1328
-  (0.1ms) ROLLBACK
1329
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1330
-  (0.2ms) BEGIN
1331
- ----------------------------
1332
- GeneratorsTest: test_install
1333
- ----------------------------
1334
-  (0.3ms) ROLLBACK
1335
-  (0.1ms) BEGIN
1336
- ----------------------------
1337
- ProductTest: test_persistent
1338
- ----------------------------
1339
-  (0.1ms) SAVEPOINT active_record_1
1340
- ProductTranslation Exists (0.8ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1341
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1342
- SQL (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:06:01.915991"], ["updated_at", "2016-12-05 21:06:01.915991"]]
1343
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 47], ["created_at", "2016-12-05 21:06:01.918541"], ["updated_at", "2016-12-05 21:06:01.918541"]]
1344
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 47], ["created_at", "2016-12-05 21:06:01.919644"], ["updated_at", "2016-12-05 21:06:01.919644"]]
1345
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1346
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 47]]
1347
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 47]]
1348
-  (0.1ms) SAVEPOINT active_record_1
1349
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 87]]
1350
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 88]]
1351
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 47]]
1352
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1353
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1354
-  (0.1ms) ROLLBACK
1355
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1356
-  (0.3ms) BEGIN
1357
- ----------------------------
1358
- ProductTest: test_persistent
1359
- ----------------------------
1360
-  (0.1ms) SAVEPOINT active_record_1
1361
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1362
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1363
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:06:37.744032"], ["updated_at", "2016-12-05 21:06:37.744032"]]
1364
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 48], ["created_at", "2016-12-05 21:06:37.745574"], ["updated_at", "2016-12-05 21:06:37.745574"]]
1365
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 48], ["created_at", "2016-12-05 21:06:37.746688"], ["updated_at", "2016-12-05 21:06:37.746688"]]
1366
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1367
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 48]]
1368
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 48]]
1369
-  (0.1ms) SAVEPOINT active_record_1
1370
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 89]]
1371
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 90]]
1372
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 48]]
1373
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1374
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1375
-  (0.2ms) ROLLBACK
1376
-  (0.1ms) BEGIN
1377
- ----------------------------
1378
- GeneratorsTest: test_install
1379
- ----------------------------
1380
-  (0.2ms) ROLLBACK
1381
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1382
-  (0.2ms) BEGIN
1383
- ----------------------------
1384
- GeneratorsTest: test_install
1385
- ----------------------------
1386
-  (0.3ms) ROLLBACK
1387
-  (0.2ms) BEGIN
1388
- ----------------------------
1389
- ProductTest: test_persistent
1390
- ----------------------------
1391
-  (0.2ms) SAVEPOINT active_record_1
1392
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1393
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1394
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:06:47.043462"], ["updated_at", "2016-12-05 21:06:47.043462"]]
1395
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 49], ["created_at", "2016-12-05 21:06:47.045103"], ["updated_at", "2016-12-05 21:06:47.045103"]]
1396
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 49], ["created_at", "2016-12-05 21:06:47.046244"], ["updated_at", "2016-12-05 21:06:47.046244"]]
1397
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1398
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 49]]
1399
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 49]]
1400
-  (0.1ms) SAVEPOINT active_record_1
1401
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 91]]
1402
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 92]]
1403
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 49]]
1404
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1405
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1406
-  (0.1ms) ROLLBACK
1407
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1408
-  (0.2ms) BEGIN
1409
- ----------------------------
1410
- ProductTest: test_persistent
1411
- ----------------------------
1412
-  (0.2ms) SAVEPOINT active_record_1
1413
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1414
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1415
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:07:48.369380"], ["updated_at", "2016-12-05 21:07:48.369380"]]
1416
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 50], ["created_at", "2016-12-05 21:07:48.370787"], ["updated_at", "2016-12-05 21:07:48.370787"]]
1417
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 50], ["created_at", "2016-12-05 21:07:48.371769"], ["updated_at", "2016-12-05 21:07:48.371769"]]
1418
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1419
- Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 50]]
1420
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 50]]
1421
-  (0.1ms) SAVEPOINT active_record_1
1422
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 93]]
1423
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 94]]
1424
- SQL (0.8ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 50]]
1425
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1426
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1427
-  (0.2ms) ROLLBACK
1428
-  (0.2ms) BEGIN
1429
- ----------------------------
1430
- GeneratorsTest: test_install
1431
- ----------------------------
1432
-  (0.2ms) ROLLBACK
1433
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1434
-  (0.3ms) BEGIN
1435
- ----------------------------
1436
- ProductTest: test_persistent
1437
- ----------------------------
1438
-  (0.2ms) SAVEPOINT active_record_1
1439
- ProductTranslation Exists (0.6ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1440
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1441
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-05 21:09:49.410105"], ["updated_at", "2016-12-05 21:09:49.410105"]]
1442
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 51], ["created_at", "2016-12-05 21:09:49.411619"], ["updated_at", "2016-12-05 21:09:49.411619"]]
1443
- SQL (0.3ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 51], ["created_at", "2016-12-05 21:09:49.412696"], ["updated_at", "2016-12-05 21:09:49.412696"]]
1444
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1445
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 51]]
1446
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 51]]
1447
-  (0.1ms) SAVEPOINT active_record_1
1448
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 95]]
1449
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 96]]
1450
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 51]]
1451
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1452
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1453
-  (0.2ms) ROLLBACK
1454
-  (0.1ms) BEGIN
1455
- ----------------------------
1456
- GeneratorsTest: test_install
1457
- ----------------------------
1458
-  (0.2ms) ROLLBACK
1459
- ActiveRecord::SchemaMigration Load (26.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
1460
-  (0.2ms) BEGIN
1461
- ----------------------------
1462
- GeneratorsTest: test_install
1463
- ----------------------------
1464
-  (0.1ms) ROLLBACK
1465
-  (0.1ms) BEGIN
1466
- ----------------------------
1467
- ProductTest: test_persistent
1468
- ----------------------------
1469
-  (0.2ms) SAVEPOINT active_record_1
1470
- ProductTranslation Exists (24.8ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1471
- ProductTranslation Exists (0.3ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1472
- SQL (2.0ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:29:31.078254"], ["updated_at", "2016-12-13 20:29:31.078254"]]
1473
- SQL (1.9ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 52], ["created_at", "2016-12-13 20:29:31.081643"], ["updated_at", "2016-12-13 20:29:31.081643"]]
1474
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 52], ["created_at", "2016-12-13 20:29:31.084802"], ["updated_at", "2016-12-13 20:29:31.084802"]]
1475
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1476
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 52]]
1477
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 52]]
1478
-  (0.1ms) SAVEPOINT active_record_1
1479
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 97]]
1480
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 98]]
1481
- SQL (0.1ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 52]]
1482
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1483
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1484
-  (0.1ms) ROLLBACK
1485
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1486
-  (0.2ms) BEGIN
1487
- ----------------------------
1488
- GeneratorsTest: test_install
1489
- ----------------------------
1490
-  (0.2ms) ROLLBACK
1491
-  (0.1ms) BEGIN
1492
- ----------------------------
1493
- ProductTest: test_persistent
1494
- ----------------------------
1495
-  (0.3ms) SAVEPOINT active_record_1
1496
- ProductTranslation Exists (0.7ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'en') LIMIT 1
1497
- ProductTranslation Exists (0.2ms) SELECT 1 AS one FROM "product_translations" WHERE ("product_translations"."product_id" IS NULL AND "product_translations"."locale" = 'es') LIMIT 1
1498
- SQL (0.3ms) INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:30:16.263393"], ["updated_at", "2016-12-13 20:30:16.263393"]]
1499
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "phone"], ["product_id", 53], ["created_at", "2016-12-13 20:30:16.264872"], ["updated_at", "2016-12-13 20:30:16.264872"]]
1500
- SQL (0.2ms) INSERT INTO "product_translations" ("locale", "name", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "teléfono"], ["product_id", 53], ["created_at", "2016-12-13 20:30:16.265837"], ["updated_at", "2016-12-13 20:30:16.265837"]]
1501
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1502
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 53]]
1503
- ProductTranslation Load (0.2ms) SELECT "product_translations".* FROM "product_translations" WHERE "product_translations"."product_id" = $1 [["product_id", 53]]
1504
-  (0.1ms) SAVEPOINT active_record_1
1505
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 99]]
1506
- SQL (0.2ms) DELETE FROM "product_translations" WHERE "product_translations"."id" = $1 [["id", 100]]
1507
- SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 53]]
1508
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1509
-  (0.2ms) SELECT COUNT(*) FROM "product_translations"
1510
-  (0.2ms) ROLLBACK
1511
-  (19.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
1512
-  (16.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1513
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1514
- Migrating to CreateProducts (20130819155126)
1515
-  (0.1ms) BEGIN
1516
-  (7.9ms) CREATE TABLE "products" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
1517
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130819155126"]]
1518
-  (6.4ms) COMMIT
1519
- Migrating to CreateProductTranslations (20161205171056)
1520
-  (11.7ms) BEGIN
1521
-  (12.9ms) CREATE TABLE "product_translations" ("id" serial primary key, "product_id" integer, "locale" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
1522
-  (0.8ms) CREATE UNIQUE INDEX "index_product_translations_on_product_id_and_locale" ON "product_translations" ("product_id", "locale")
1523
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161205171056"]]
1524
-  (0.6ms) COMMIT
1525
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1526
-  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1527
- FROM pg_constraint c
1528
- JOIN pg_class t1 ON c.conrelid = t1.oid
1529
- JOIN pg_class t2 ON c.confrelid = t2.oid
1530
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1531
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1532
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
1533
- WHERE c.contype = 'f'
1534
- AND t1.relname = 'product_translations'
1535
- AND t3.nspname = ANY (current_schemas(false))
1536
- ORDER BY c.conname
1537
-
1538
-  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1539
- FROM pg_constraint c
1540
- JOIN pg_class t1 ON c.conrelid = t1.oid
1541
- JOIN pg_class t2 ON c.confrelid = t2.oid
1542
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1543
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1544
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
1545
- WHERE c.contype = 'f'
1546
- AND t1.relname = 'products'
1547
- AND t3.nspname = ANY (current_schemas(false))
1548
- ORDER BY c.conname
1549
-