slugs 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +34 -0
  4. data/Rakefile +32 -0
  5. data/lib/slugs/active_record/base.rb +76 -0
  6. data/lib/slugs/active_record/non_translatable.rb +30 -0
  7. data/lib/slugs/active_record/relation.rb +18 -0
  8. data/lib/slugs/active_record/translatable.rb +53 -0
  9. data/lib/slugs/railtie.rb +10 -0
  10. data/lib/slugs/version.rb +5 -0
  11. data/lib/slugs.rb +9 -0
  12. data/test/dummy/README.rdoc +28 -0
  13. data/test/dummy/Rakefile +6 -0
  14. data/test/dummy/app/assets/javascripts/application.js +13 -0
  15. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  16. data/test/dummy/app/controllers/application_controller.rb +5 -0
  17. data/test/dummy/app/helpers/application_helper.rb +2 -0
  18. data/test/dummy/app/models/simple.rb +5 -0
  19. data/test/dummy/app/models/translatable.rb +7 -0
  20. data/test/dummy/app/models/translatable_translation.rb +9 -0
  21. data/test/dummy/app/models/without.rb +2 -0
  22. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  23. data/test/dummy/bin/bundle +3 -0
  24. data/test/dummy/bin/rails +4 -0
  25. data/test/dummy/bin/rake +4 -0
  26. data/test/dummy/config/application.rb +23 -0
  27. data/test/dummy/config/boot.rb +5 -0
  28. data/test/dummy/config/database.yml +25 -0
  29. data/test/dummy/config/environment.rb +5 -0
  30. data/test/dummy/config/environments/development.rb +29 -0
  31. data/test/dummy/config/environments/production.rb +80 -0
  32. data/test/dummy/config/environments/test.rb +36 -0
  33. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  34. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  35. data/test/dummy/config/initializers/inflections.rb +16 -0
  36. data/test/dummy/config/initializers/mime_types.rb +5 -0
  37. data/test/dummy/config/initializers/secret_token.rb +12 -0
  38. data/test/dummy/config/initializers/session_store.rb +3 -0
  39. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  40. data/test/dummy/config/locales/en.yml +23 -0
  41. data/test/dummy/config/routes.rb +56 -0
  42. data/test/dummy/config.ru +4 -0
  43. data/test/dummy/db/development.sqlite3 +0 -0
  44. data/test/dummy/db/migrate/20130819183013_create_simples.rb +11 -0
  45. data/test/dummy/db/migrate/20130819183047_create_withouts.rb +9 -0
  46. data/test/dummy/db/migrate/20130819183119_create_translatables.rb +9 -0
  47. data/test/dummy/db/migrate/20130819183257_create_translatable_translations.rb +15 -0
  48. data/test/dummy/db/schema.rb +49 -0
  49. data/test/dummy/db/test.sqlite3 +0 -0
  50. data/test/dummy/log/development.log +169 -0
  51. data/test/dummy/log/test.log +1143 -0
  52. data/test/dummy/public/404.html +58 -0
  53. data/test/dummy/public/422.html +58 -0
  54. data/test/dummy/public/500.html +57 -0
  55. data/test/dummy/public/favicon.ico +0 -0
  56. data/test/records_test.rb +78 -0
  57. data/test/test_helper.rb +21 -0
  58. metadata +174 -0
@@ -0,0 +1,1143 @@
1
+  (2.9ms) DROP TABLE "simples"
2
+  (3.0ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)
3
+  (3.2ms) DROP TABLE "translatable_translations"
4
+  (3.7ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "created_at" datetime, "updated_at" datetime)
5
+  (11.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
6
+  (3.4ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
7
+  (3.0ms) DROP TABLE "translatables"
8
+  (2.8ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)
9
+  (3.0ms) DROP TABLE "withouts"
10
+  (3.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
11
+  (0.1ms) SELECT version FROM "schema_migrations"
12
+  (0.1ms) begin transaction
13
+ -----------------------------------
14
+ RecordsTest: test_shoud_create_slug
15
+ -----------------------------------
16
+  (0.1ms) SAVEPOINT active_record_1
17
+ SQL (22.8ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00]]
18
+  (0.1ms) RELEASE SAVEPOINT active_record_1
19
+  (0.1ms) SAVEPOINT active_record_1
20
+ Simple Load (0.4ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
21
+ SQL (0.6ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00]]
22
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23
+  (1.1ms) rollback transaction
24
+  (0.1ms) begin transaction
25
+ ----------------------------------------------------
26
+ RecordsTest: test_should_assign_index_for_same_slugs
27
+ ----------------------------------------------------
28
+  (0.0ms) SAVEPOINT active_record_1
29
+ SQL (0.4ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00]]
30
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31
+  (0.0ms) SAVEPOINT active_record_1
32
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
33
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00]]
34
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35
+  (1.1ms) rollback transaction
36
+  (0.1ms) begin transaction
37
+ ----------------------------------
38
+ RecordsTest: test_should_edit_slug
39
+ ----------------------------------
40
+  (0.0ms) SAVEPOINT active_record_1
41
+ SQL (0.4ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00]]
42
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43
+  (0.0ms) SAVEPOINT active_record_1
44
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
45
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00]]
46
+  (0.0ms) RELEASE SAVEPOINT active_record_1
47
+  (1.0ms) rollback transaction
48
+  (0.1ms) begin transaction
49
+ -------------------------------------------------------
50
+ RecordsTest: test_should_not_alter_direct_assigned_slug
51
+ -------------------------------------------------------
52
+  (0.0ms) SAVEPOINT active_record_1
53
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00]]
54
+  (0.0ms) RELEASE SAVEPOINT active_record_1
55
+  (0.0ms) SAVEPOINT active_record_1
56
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
57
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00]]
58
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59
+  (0.8ms) rollback transaction
60
+  (0.0ms) begin transaction
61
+ -----------------------------------------
62
+ RecordsTest: test_should_not_break_models
63
+ -----------------------------------------
64
+  (0.0ms) SAVEPOINT active_record_1
65
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00]]
66
+  (0.1ms) RELEASE SAVEPOINT active_record_1
67
+  (0.0ms) SAVEPOINT active_record_1
68
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
69
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00]]
70
+  (0.1ms) RELEASE SAVEPOINT active_record_1
71
+  (1.1ms) rollback transaction
72
+  (0.1ms) begin transaction
73
+ ---------------------------------------------
74
+ RecordsTest: test_should_not_break_validation
75
+ ---------------------------------------------
76
+  (0.0ms) SAVEPOINT active_record_1
77
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00]]
78
+  (0.0ms) RELEASE SAVEPOINT active_record_1
79
+  (0.0ms) SAVEPOINT active_record_1
80
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
81
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:36:26 UTC +00:00]]
82
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83
+  (0.8ms) rollback transaction
84
+  (2.5ms) DROP TABLE "simples"
85
+  (2.3ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)
86
+  (2.9ms) DROP TABLE "translatable_translations"
87
+  (3.2ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "created_at" datetime, "updated_at" datetime)
88
+  (3.6ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
89
+  (2.8ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
90
+  (2.7ms) DROP TABLE "translatables"
91
+  (2.9ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)
92
+  (2.6ms) DROP TABLE "withouts"
93
+  (3.7ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
94
+  (0.1ms) SELECT version FROM "schema_migrations"
95
+  (0.1ms) begin transaction
96
+ -----------------------------------
97
+ RecordsTest: test_shoud_create_slug
98
+ -----------------------------------
99
+  (0.1ms) SAVEPOINT active_record_1
100
+ SQL (2.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00]]
101
+  (0.0ms) RELEASE SAVEPOINT active_record_1
102
+  (0.1ms) SAVEPOINT active_record_1
103
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
104
+ SQL (0.5ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00]]
105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
106
+  (0.1ms) SAVEPOINT active_record_1
107
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
108
+  (1.1ms) rollback transaction
109
+  (0.1ms) begin transaction
110
+ ----------------------------------------------------
111
+ RecordsTest: test_should_assign_index_for_same_slugs
112
+ ----------------------------------------------------
113
+  (0.0ms) SAVEPOINT active_record_1
114
+ SQL (0.4ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00]]
115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
116
+  (0.0ms) SAVEPOINT active_record_1
117
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
118
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00]]
119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
120
+  (0.0ms) SAVEPOINT active_record_1
121
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
122
+  (1.0ms) rollback transaction
123
+  (0.1ms) begin transaction
124
+ ----------------------------------
125
+ RecordsTest: test_should_edit_slug
126
+ ----------------------------------
127
+  (0.0ms) SAVEPOINT active_record_1
128
+ SQL (0.4ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00]]
129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130
+  (0.0ms) SAVEPOINT active_record_1
131
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
132
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00]]
133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
134
+  (0.1ms) SAVEPOINT active_record_1
135
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
136
+  (1.0ms) rollback transaction
137
+  (0.1ms) begin transaction
138
+ -------------------------------------------------------
139
+ RecordsTest: test_should_not_alter_direct_assigned_slug
140
+ -------------------------------------------------------
141
+  (0.0ms) SAVEPOINT active_record_1
142
+ SQL (0.4ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00]]
143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
144
+  (0.0ms) SAVEPOINT active_record_1
145
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
146
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00]]
147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
148
+  (0.1ms) SAVEPOINT active_record_1
149
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
150
+  (0.8ms) rollback transaction
151
+  (0.1ms) begin transaction
152
+ -----------------------------------------
153
+ RecordsTest: test_should_not_break_models
154
+ -----------------------------------------
155
+  (0.0ms) SAVEPOINT active_record_1
156
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00]]
157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
158
+  (0.0ms) SAVEPOINT active_record_1
159
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
160
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00]]
161
+  (0.1ms) RELEASE SAVEPOINT active_record_1
162
+  (0.1ms) SAVEPOINT active_record_1
163
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
164
+  (0.8ms) rollback transaction
165
+  (0.0ms) begin transaction
166
+ ---------------------------------------------
167
+ RecordsTest: test_should_not_break_validation
168
+ ---------------------------------------------
169
+  (0.0ms) SAVEPOINT active_record_1
170
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00]]
171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
172
+  (0.0ms) SAVEPOINT active_record_1
173
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
174
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:37:58 UTC +00:00]]
175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
176
+  (0.1ms) SAVEPOINT active_record_1
177
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
178
+  (1.0ms) rollback transaction
179
+  (54.0ms) DROP TABLE "simples"
180
+  (2.2ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)
181
+  (3.6ms) DROP TABLE "translatable_translations"
182
+  (3.2ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "slug" varchar(255), "age" integer, "created_at" datetime, "updated_at" datetime)
183
+  (3.5ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
184
+  (3.0ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
185
+  (2.8ms) DROP TABLE "translatables"
186
+  (3.9ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)
187
+  (3.2ms) DROP TABLE "withouts"
188
+  (2.7ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
189
+  (0.1ms) SELECT version FROM "schema_migrations"
190
+  (0.1ms) begin transaction
191
+ -----------------------------------
192
+ RecordsTest: test_shoud_create_slug
193
+ -----------------------------------
194
+  (0.1ms) SAVEPOINT active_record_1
195
+ SQL (2.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:40:47 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:40:47 UTC +00:00]]
196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
197
+  (0.1ms) SAVEPOINT active_record_1
198
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
199
+ SQL (0.4ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:40:47 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:40:47 UTC +00:00]]
200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
201
+  (0.1ms) SAVEPOINT active_record_1
202
+ SQL (0.3ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
203
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
204
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
205
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1
207
+ Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'translatable-name' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1
208
+ TranslatableTranslation Load (0.3ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)
209
+  (1.2ms) rollback transaction
210
+  (0.1ms) begin transaction
211
+ ----------------------------------------------------
212
+ RecordsTest: test_should_assign_index_for_same_slugs
213
+ ----------------------------------------------------
214
+  (0.1ms) SAVEPOINT active_record_1
215
+ SQL (0.4ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
216
+  (0.1ms) RELEASE SAVEPOINT active_record_1
217
+  (0.0ms) SAVEPOINT active_record_1
218
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
219
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
221
+  (0.0ms) SAVEPOINT active_record_1
222
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
223
+ SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
224
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
225
+  (0.0ms) RELEASE SAVEPOINT active_record_1
226
+  (0.0ms) SAVEPOINT active_record_1
227
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1
228
+ SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230
+  (0.0ms) SAVEPOINT active_record_1
231
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1
232
+ SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
233
+  (0.0ms) RELEASE SAVEPOINT active_record_1
234
+  (0.0ms) SAVEPOINT active_record_1
235
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1
236
+ SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238
+  (0.0ms) SAVEPOINT active_record_1
239
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1
240
+ SQL (0.2ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["name", "other"], ["slug", "other"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
242
+  (0.0ms) SAVEPOINT active_record_1
243
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1
244
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other-1"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
245
+  (0.0ms) RELEASE SAVEPOINT active_record_1
246
+  (0.0ms) SAVEPOINT active_record_1
247
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1
248
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 4 [["name", "other"], ["slug", "other-2"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
249
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250
+  (0.0ms) SAVEPOINT active_record_1
251
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
252
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
253
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 2], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
255
+  (0.0ms) SAVEPOINT active_record_1
256
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
257
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (2) AND ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC
258
+ SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
259
+ SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 3], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
261
+  (0.0ms) SAVEPOINT active_record_1
262
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
263
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (3) AND ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC
264
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
265
+ SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 4], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
267
+  (0.0ms) SAVEPOINT active_record_1
268
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
269
+ SQL (0.2ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["name", "other"], ["slug", "other"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
270
+  (0.0ms) RELEASE SAVEPOINT active_record_1
271
+  (0.0ms) SAVEPOINT active_record_1
272
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
273
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (2) AND ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC
274
+ SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other-1"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
276
+  (0.0ms) SAVEPOINT active_record_1
277
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
278
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (3) AND ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC
279
+ SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 4 [["name", "other"], ["slug", "other-2"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
281
+  (0.8ms) rollback transaction
282
+  (0.0ms) begin transaction
283
+ ----------------------------------
284
+ RecordsTest: test_should_edit_slug
285
+ ----------------------------------
286
+  (0.0ms) SAVEPOINT active_record_1
287
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
288
+  (0.0ms) RELEASE SAVEPOINT active_record_1
289
+  (0.0ms) SAVEPOINT active_record_1
290
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
291
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
293
+  (0.1ms) SAVEPOINT active_record_1
294
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
295
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
296
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
297
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298
+  (0.0ms) SAVEPOINT active_record_1
299
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1
300
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
301
+  (0.0ms) RELEASE SAVEPOINT active_record_1
302
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1
303
+  (0.0ms) SAVEPOINT active_record_1
304
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'new-translatable-name' OR t.slug LIKE 'new-translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
305
+ SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "new translatable name"], ["slug", "new-translatable-name"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
306
+  (0.0ms) RELEASE SAVEPOINT active_record_1
307
+ Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'new-translatable-name' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1
308
+ TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)
309
+  (1.1ms) rollback transaction
310
+  (0.1ms) begin transaction
311
+ -------------------------------------------------------
312
+ RecordsTest: test_should_not_alter_direct_assigned_slug
313
+ -------------------------------------------------------
314
+  (0.0ms) SAVEPOINT active_record_1
315
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
317
+  (0.0ms) SAVEPOINT active_record_1
318
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
319
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
320
+  (0.0ms) RELEASE SAVEPOINT active_record_1
321
+  (0.1ms) SAVEPOINT active_record_1
322
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
323
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
324
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
326
+  (0.0ms) SAVEPOINT active_record_1
327
+ SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1
330
+  (0.0ms) SAVEPOINT active_record_1
331
+ SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
333
+ Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'translatable direct slug' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1
334
+ TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)
335
+  (1.0ms) rollback transaction
336
+  (0.1ms) begin transaction
337
+ -----------------------------------------
338
+ RecordsTest: test_should_not_break_models
339
+ -----------------------------------------
340
+  (0.0ms) SAVEPOINT active_record_1
341
+ SQL (0.4ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
343
+  (0.0ms) SAVEPOINT active_record_1
344
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
345
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
347
+  (0.1ms) SAVEPOINT active_record_1
348
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
349
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
350
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
351
+  (0.0ms) RELEASE SAVEPOINT active_record_1
352
+ Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]]
353
+ Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]
354
+  (1.1ms) rollback transaction
355
+  (0.1ms) begin transaction
356
+ ---------------------------------------------
357
+ RecordsTest: test_should_not_break_validation
358
+ ---------------------------------------------
359
+  (0.0ms) SAVEPOINT active_record_1
360
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
362
+  (0.0ms) SAVEPOINT active_record_1
363
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
364
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
366
+  (0.0ms) SAVEPOINT active_record_1
367
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
368
+ SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
369
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 18:40:48 UTC +00:00]]
370
+  (0.0ms) RELEASE SAVEPOINT active_record_1
371
+  (1.0ms) rollback transaction
372
+  (55.9ms) DROP TABLE "simples"
373
+  (2.4ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)
374
+  (2.7ms) DROP TABLE "translatable_translations"
375
+  (3.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "slug" varchar(255), "age" integer, "created_at" datetime, "updated_at" datetime)
376
+  (3.7ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
377
+  (3.0ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
378
+  (2.8ms) DROP TABLE "translatables"
379
+  (3.9ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)
380
+  (3.1ms) DROP TABLE "withouts"
381
+  (2.8ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
382
+  (0.1ms) SELECT version FROM "schema_migrations"
383
+  (0.1ms) begin transaction
384
+ -----------------------------------
385
+ RecordsTest: test_shoud_create_slug
386
+ -----------------------------------
387
+  (0.1ms) SAVEPOINT active_record_1
388
+ SQL (2.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:47:38 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:47:38 UTC +00:00]]
389
+  (0.1ms) RELEASE SAVEPOINT active_record_1
390
+  (0.1ms) SAVEPOINT active_record_1
391
+ Simple Load (2.0ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
392
+ SQL (0.5ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:47:38 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:47:38 UTC +00:00]]
393
+  (0.1ms) RELEASE SAVEPOINT active_record_1
394
+  (0.1ms) SAVEPOINT active_record_1
395
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
396
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
397
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
399
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1
400
+ Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'translatable-name' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1
401
+ TranslatableTranslation Load (1.7ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)
402
+  (26.0ms) rollback transaction
403
+  (0.2ms) begin transaction
404
+ ----------------------------------------------------
405
+ RecordsTest: test_should_assign_index_for_same_slugs
406
+ ----------------------------------------------------
407
+  (0.1ms) SAVEPOINT active_record_1
408
+ SQL (0.6ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
409
+  (0.1ms) RELEASE SAVEPOINT active_record_1
410
+  (0.1ms) SAVEPOINT active_record_1
411
+ Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
412
+ SQL (0.4ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
413
+  (0.1ms) RELEASE SAVEPOINT active_record_1
414
+  (0.1ms) SAVEPOINT active_record_1
415
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
416
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
417
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
419
+  (0.0ms) SAVEPOINT active_record_1
420
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1
421
+ SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
422
+  (0.0ms) RELEASE SAVEPOINT active_record_1
423
+  (0.0ms) SAVEPOINT active_record_1
424
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1
425
+ SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
426
+  (0.0ms) RELEASE SAVEPOINT active_record_1
427
+  (0.0ms) SAVEPOINT active_record_1
428
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1
429
+ SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
431
+  (0.0ms) SAVEPOINT active_record_1
432
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1
433
+ SQL (0.2ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["name", "other"], ["slug", "other"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
434
+  (0.0ms) RELEASE SAVEPOINT active_record_1
435
+  (0.0ms) SAVEPOINT active_record_1
436
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1
437
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other-1"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
439
+  (0.0ms) SAVEPOINT active_record_1
440
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1
441
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 4 [["name", "other"], ["slug", "other-2"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
443
+  (0.0ms) SAVEPOINT active_record_1
444
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
445
+ SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
446
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 2], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
447
+  (0.0ms) RELEASE SAVEPOINT active_record_1
448
+  (0.0ms) SAVEPOINT active_record_1
449
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
450
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (2) AND ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC
451
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
452
+ SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 3], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
453
+  (0.1ms) RELEASE SAVEPOINT active_record_1
454
+  (0.0ms) SAVEPOINT active_record_1
455
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
456
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (3) AND ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC
457
+ SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
458
+ SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 4], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
460
+  (0.0ms) SAVEPOINT active_record_1
461
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
462
+ SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["name", "other"], ["slug", "other"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
463
+  (0.0ms) RELEASE SAVEPOINT active_record_1
464
+  (0.0ms) SAVEPOINT active_record_1
465
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
466
+ SQL (0.8ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (2) AND ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC
467
+ SQL (0.2ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other-1"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
468
+  (0.0ms) RELEASE SAVEPOINT active_record_1
469
+  (0.0ms) SAVEPOINT active_record_1
470
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
471
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (3) AND ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC
472
+ SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 4 [["name", "other"], ["slug", "other-2"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
474
+  (20.9ms) rollback transaction
475
+  (0.1ms) begin transaction
476
+ ----------------------------------
477
+ RecordsTest: test_should_edit_slug
478
+ ----------------------------------
479
+  (0.0ms) SAVEPOINT active_record_1
480
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
481
+  (0.0ms) RELEASE SAVEPOINT active_record_1
482
+  (0.0ms) SAVEPOINT active_record_1
483
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
484
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
485
+  (0.0ms) RELEASE SAVEPOINT active_record_1
486
+  (0.1ms) SAVEPOINT active_record_1
487
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
488
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
489
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
490
+  (0.0ms) RELEASE SAVEPOINT active_record_1
491
+  (0.0ms) SAVEPOINT active_record_1
492
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1
493
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
494
+  (0.0ms) RELEASE SAVEPOINT active_record_1
495
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1
496
+  (0.0ms) SAVEPOINT active_record_1
497
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'new-translatable-name' OR t.slug LIKE 'new-translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
498
+ SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "new translatable name"], ["slug", "new-translatable-name"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
500
+ Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'new-translatable-name' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1
501
+ TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)
502
+  (0.8ms) rollback transaction
503
+  (0.0ms) begin transaction
504
+ -------------------------------------------------------
505
+ RecordsTest: test_should_not_alter_direct_assigned_slug
506
+ -------------------------------------------------------
507
+  (0.0ms) SAVEPOINT active_record_1
508
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
510
+  (0.0ms) SAVEPOINT active_record_1
511
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
512
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
513
+  (0.0ms) RELEASE SAVEPOINT active_record_1
514
+  (0.1ms) SAVEPOINT active_record_1
515
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
516
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
517
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
519
+  (0.0ms) SAVEPOINT active_record_1
520
+ SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
521
+  (0.0ms) RELEASE SAVEPOINT active_record_1
522
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1
523
+  (0.0ms) SAVEPOINT active_record_1
524
+ SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
526
+ Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'translatable direct slug' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1
527
+ TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)
528
+  (166.5ms) rollback transaction
529
+  (0.1ms) begin transaction
530
+ -----------------------------------------
531
+ RecordsTest: test_should_not_break_models
532
+ -----------------------------------------
533
+  (0.1ms) SAVEPOINT active_record_1
534
+ SQL (0.6ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
535
+  (0.1ms) RELEASE SAVEPOINT active_record_1
536
+  (0.1ms) SAVEPOINT active_record_1
537
+ Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
538
+ SQL (0.5ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
539
+  (0.1ms) RELEASE SAVEPOINT active_record_1
540
+  (0.1ms) SAVEPOINT active_record_1
541
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
542
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
543
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
545
+ Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]]
546
+ Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]
547
+  (1.0ms) rollback transaction
548
+  (0.1ms) begin transaction
549
+ ---------------------------------------------
550
+ RecordsTest: test_should_not_break_validation
551
+ ---------------------------------------------
552
+  (0.0ms) SAVEPOINT active_record_1
553
+ SQL (0.4ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
555
+  (0.0ms) SAVEPOINT active_record_1
556
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
557
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
559
+  (0.1ms) SAVEPOINT active_record_1
560
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
561
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
562
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 18:47:39 UTC +00:00]]
563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
564
+  (1.1ms) rollback transaction
565
+  (54.4ms) DROP TABLE "simples"
566
+  (3.4ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)
567
+  (3.5ms) DROP TABLE "translatable_translations"
568
+  (3.5ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "slug" varchar(255), "age" integer, "created_at" datetime, "updated_at" datetime)
569
+  (3.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
570
+  (3.2ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
571
+  (3.0ms) DROP TABLE "translatables"
572
+  (2.9ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)
573
+  (2.8ms) DROP TABLE "withouts"
574
+  (2.8ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
575
+  (0.1ms) SELECT version FROM "schema_migrations"
576
+  (0.1ms) begin transaction
577
+ -----------------------------------
578
+ RecordsTest: test_shoud_create_slug
579
+ -----------------------------------
580
+  (0.1ms) SAVEPOINT active_record_1
581
+ SQL (2.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
582
+  (0.1ms) RELEASE SAVEPOINT active_record_1
583
+  (0.1ms) SAVEPOINT active_record_1
584
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
585
+ SQL (0.4ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
586
+  (0.1ms) RELEASE SAVEPOINT active_record_1
587
+  (0.1ms) SAVEPOINT active_record_1
588
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
589
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
590
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
591
+  (0.0ms) RELEASE SAVEPOINT active_record_1
592
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1
593
+ Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'translatable-name' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1
594
+ TranslatableTranslation Load (0.3ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)
595
+  (1.3ms) rollback transaction
596
+  (0.1ms) begin transaction
597
+ ----------------------------------------------------
598
+ RecordsTest: test_should_assign_index_for_same_slugs
599
+ ----------------------------------------------------
600
+  (0.1ms) SAVEPOINT active_record_1
601
+ SQL (0.5ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
602
+  (0.1ms) RELEASE SAVEPOINT active_record_1
603
+  (0.1ms) SAVEPOINT active_record_1
604
+ Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
605
+ SQL (0.4ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
606
+  (0.1ms) RELEASE SAVEPOINT active_record_1
607
+  (0.0ms) SAVEPOINT active_record_1
608
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
609
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
610
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
612
+  (0.0ms) SAVEPOINT active_record_1
613
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1
614
+ SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
615
+  (0.0ms) RELEASE SAVEPOINT active_record_1
616
+  (0.0ms) SAVEPOINT active_record_1
617
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1
618
+ SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
620
+  (0.0ms) SAVEPOINT active_record_1
621
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1
622
+ SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
623
+  (0.0ms) RELEASE SAVEPOINT active_record_1
624
+  (0.0ms) SAVEPOINT active_record_1
625
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1
626
+ SQL (0.2ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["name", "other"], ["slug", "other"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
627
+  (0.0ms) RELEASE SAVEPOINT active_record_1
628
+  (0.0ms) SAVEPOINT active_record_1
629
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1
630
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other-1"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
631
+  (0.0ms) RELEASE SAVEPOINT active_record_1
632
+  (0.0ms) SAVEPOINT active_record_1
633
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1
634
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 4 [["name", "other"], ["slug", "other-2"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
636
+  (0.0ms) SAVEPOINT active_record_1
637
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
638
+ SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
639
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 2], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
640
+  (0.0ms) RELEASE SAVEPOINT active_record_1
641
+  (0.1ms) SAVEPOINT active_record_1
642
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
643
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (2) AND ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC
644
+ SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
645
+ SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 3], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
647
+  (0.0ms) SAVEPOINT active_record_1
648
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
649
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (3) AND ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC
650
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
651
+ SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 4], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
653
+  (0.0ms) SAVEPOINT active_record_1
654
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
655
+ SQL (0.2ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["name", "other"], ["slug", "other"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
657
+  (0.0ms) SAVEPOINT active_record_1
658
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
659
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (2) AND ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC
660
+ SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other-1"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
662
+  (0.0ms) SAVEPOINT active_record_1
663
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
664
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (3) AND ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC
665
+ SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 4 [["name", "other"], ["slug", "other-2"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
667
+  (0.9ms) rollback transaction
668
+  (0.0ms) begin transaction
669
+ ----------------------------------
670
+ RecordsTest: test_should_edit_slug
671
+ ----------------------------------
672
+  (0.0ms) SAVEPOINT active_record_1
673
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
675
+  (0.0ms) SAVEPOINT active_record_1
676
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
677
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
679
+  (0.1ms) SAVEPOINT active_record_1
680
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
681
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
682
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
683
+  (0.0ms) RELEASE SAVEPOINT active_record_1
684
+  (0.0ms) SAVEPOINT active_record_1
685
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1
686
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
687
+  (0.0ms) RELEASE SAVEPOINT active_record_1
688
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1
689
+  (0.0ms) SAVEPOINT active_record_1
690
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'new-translatable-name' OR t.slug LIKE 'new-translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
691
+ SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "new translatable name"], ["slug", "new-translatable-name"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
692
+  (0.0ms) RELEASE SAVEPOINT active_record_1
693
+ Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'new-translatable-name' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1
694
+ TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)
695
+  (0.9ms) rollback transaction
696
+  (0.1ms) begin transaction
697
+ -------------------------------------------------------
698
+ RecordsTest: test_should_not_alter_direct_assigned_slug
699
+ -------------------------------------------------------
700
+  (0.0ms) SAVEPOINT active_record_1
701
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
702
+  (0.0ms) RELEASE SAVEPOINT active_record_1
703
+  (0.0ms) SAVEPOINT active_record_1
704
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
705
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
707
+  (0.1ms) SAVEPOINT active_record_1
708
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
709
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
710
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
711
+  (0.0ms) RELEASE SAVEPOINT active_record_1
712
+  (0.0ms) SAVEPOINT active_record_1
713
+ SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
715
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1
716
+  (0.0ms) SAVEPOINT active_record_1
717
+ SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
719
+ Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'translatable direct slug' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1
720
+ TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)
721
+  (1.4ms) rollback transaction
722
+  (0.1ms) begin transaction
723
+ -----------------------------------------
724
+ RecordsTest: test_should_not_break_models
725
+ -----------------------------------------
726
+  (0.0ms) SAVEPOINT active_record_1
727
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
729
+  (0.0ms) SAVEPOINT active_record_1
730
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
731
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
733
+  (0.1ms) SAVEPOINT active_record_1
734
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
735
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
736
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
738
+ Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]]
739
+ Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]
740
+  (1.7ms) rollback transaction
741
+  (0.1ms) begin transaction
742
+ ---------------------------------------------
743
+ RecordsTest: test_should_not_break_validation
744
+ ---------------------------------------------
745
+  (0.0ms) SAVEPOINT active_record_1
746
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
748
+  (0.0ms) SAVEPOINT active_record_1
749
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
750
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
751
+  (0.0ms) RELEASE SAVEPOINT active_record_1
752
+  (0.1ms) SAVEPOINT active_record_1
753
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
754
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
755
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:20:50 UTC +00:00]]
756
+  (0.0ms) RELEASE SAVEPOINT active_record_1
757
+  (1.0ms) rollback transaction
758
+  (51.0ms) DROP TABLE "simples"
759
+  (2.7ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)
760
+  (3.1ms) DROP TABLE "translatable_translations"
761
+  (3.5ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "slug" varchar(255), "age" integer, "created_at" datetime, "updated_at" datetime)
762
+  (3.4ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
763
+  (2.9ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
764
+  (3.3ms) DROP TABLE "translatables"
765
+  (3.3ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)
766
+  (4.3ms) DROP TABLE "withouts"
767
+  (2.9ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
768
+  (0.1ms) SELECT version FROM "schema_migrations"
769
+  (0.1ms) begin transaction
770
+ ----------------------------------------------------
771
+ RecordsTest: test_should_assign_index_for_same_slugs
772
+ ----------------------------------------------------
773
+  (0.1ms) SAVEPOINT active_record_1
774
+ SQL (2.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00]]
775
+  (0.1ms) RELEASE SAVEPOINT active_record_1
776
+  (0.1ms) SAVEPOINT active_record_1
777
+ Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
778
+ SQL (0.4ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00]]
779
+  (0.1ms) RELEASE SAVEPOINT active_record_1
780
+  (0.1ms) SAVEPOINT active_record_1
781
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
782
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00]]
783
+ SQL (0.3ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00]]
784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
785
+  (0.0ms) SAVEPOINT active_record_1
786
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1
787
+ SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00]]
788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
789
+  (0.0ms) SAVEPOINT active_record_1
790
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1
791
+ SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00]]
792
+  (0.0ms) RELEASE SAVEPOINT active_record_1
793
+  (0.0ms) SAVEPOINT active_record_1
794
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1
795
+ SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00]]
796
+  (0.0ms) RELEASE SAVEPOINT active_record_1
797
+  (0.0ms) SAVEPOINT active_record_1
798
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1
799
+ SQL (0.2ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["name", "other"], ["slug", "other"], ["updated_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00]]
800
+  (0.0ms) RELEASE SAVEPOINT active_record_1
801
+  (0.0ms) SAVEPOINT active_record_1
802
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1
803
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other-1"], ["updated_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00]]
804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
805
+  (0.0ms) SAVEPOINT active_record_1
806
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1
807
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 4 [["name", "other"], ["slug", "other-2"], ["updated_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00]]
808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
809
+  (0.0ms) SAVEPOINT active_record_1
810
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
811
+ SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00]]
812
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 2], ["updated_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00]]
813
+  (0.0ms) RELEASE SAVEPOINT active_record_1
814
+  (0.1ms) SAVEPOINT active_record_1
815
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
816
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (2) AND ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC
817
+ SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:10 UTC +00:00]]
818
+ SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 3], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
819
+  (0.1ms) RELEASE SAVEPOINT active_record_1
820
+  (0.1ms) SAVEPOINT active_record_1
821
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
822
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (3) AND ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC
823
+ SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
824
+ SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 4], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
826
+  (0.0ms) SAVEPOINT active_record_1
827
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
828
+ SQL (0.2ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["name", "other"], ["slug", "other"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
829
+  (0.0ms) RELEASE SAVEPOINT active_record_1
830
+  (0.0ms) SAVEPOINT active_record_1
831
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
832
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (2) AND ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC
833
+ SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other-1"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
835
+  (0.0ms) SAVEPOINT active_record_1
836
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
837
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (3) AND ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC
838
+ SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 4 [["name", "other"], ["slug", "other-2"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
839
+  (0.0ms) RELEASE SAVEPOINT active_record_1
840
+  (1.1ms) rollback transaction
841
+  (0.1ms) begin transaction
842
+ ------------------------------------
843
+ RecordsTest: test_should_create_slug
844
+ ------------------------------------
845
+  (0.0ms) SAVEPOINT active_record_1
846
+ SQL (0.4ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
848
+  (0.0ms) SAVEPOINT active_record_1
849
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
850
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
852
+  (0.0ms) SAVEPOINT active_record_1
853
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
854
+ SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
855
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
857
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1
858
+ Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'translatable-name' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1
859
+ TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)
860
+  (1.1ms) rollback transaction
861
+  (0.1ms) begin transaction
862
+ ----------------------------------
863
+ RecordsTest: test_should_edit_slug
864
+ ----------------------------------
865
+  (0.0ms) SAVEPOINT active_record_1
866
+ SQL (0.4ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
868
+  (0.0ms) SAVEPOINT active_record_1
869
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
870
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
871
+  (0.0ms) RELEASE SAVEPOINT active_record_1
872
+  (0.1ms) SAVEPOINT active_record_1
873
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
874
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
875
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
876
+  (0.1ms) RELEASE SAVEPOINT active_record_1
877
+  (0.0ms) SAVEPOINT active_record_1
878
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1
879
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
881
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1
882
+  (0.0ms) SAVEPOINT active_record_1
883
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'new-translatable-name' OR t.slug LIKE 'new-translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
884
+ SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "new translatable name"], ["slug", "new-translatable-name"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
886
+ Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'new-translatable-name' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1
887
+ TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)
888
+  (1.1ms) rollback transaction
889
+  (0.1ms) begin transaction
890
+ -------------------------------------------------------
891
+ RecordsTest: test_should_not_alter_direct_assigned_slug
892
+ -------------------------------------------------------
893
+  (0.1ms) SAVEPOINT active_record_1
894
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
895
+  (0.0ms) RELEASE SAVEPOINT active_record_1
896
+  (0.0ms) SAVEPOINT active_record_1
897
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
898
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
900
+  (0.1ms) SAVEPOINT active_record_1
901
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
902
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
903
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
904
+  (0.0ms) RELEASE SAVEPOINT active_record_1
905
+  (0.0ms) SAVEPOINT active_record_1
906
+ SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
907
+  (0.0ms) RELEASE SAVEPOINT active_record_1
908
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1
909
+  (0.0ms) SAVEPOINT active_record_1
910
+ SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
912
+ Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'translatable direct slug' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1
913
+ TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)
914
+  (1.1ms) rollback transaction
915
+  (0.1ms) begin transaction
916
+ -----------------------------------------
917
+ RecordsTest: test_should_not_break_models
918
+ -----------------------------------------
919
+  (0.0ms) SAVEPOINT active_record_1
920
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
921
+  (0.0ms) RELEASE SAVEPOINT active_record_1
922
+  (0.0ms) SAVEPOINT active_record_1
923
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
924
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
925
+  (0.0ms) RELEASE SAVEPOINT active_record_1
926
+  (0.0ms) SAVEPOINT active_record_1
927
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
928
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
929
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
930
+  (0.0ms) RELEASE SAVEPOINT active_record_1
931
+ Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]]
932
+ Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]
933
+  (1.1ms) rollback transaction
934
+  (0.1ms) begin transaction
935
+ ---------------------------------------------
936
+ RecordsTest: test_should_not_break_validation
937
+ ---------------------------------------------
938
+  (0.0ms) SAVEPOINT active_record_1
939
+ SQL (0.4ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
941
+  (0.0ms) SAVEPOINT active_record_1
942
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
943
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
945
+  (0.0ms) SAVEPOINT active_record_1
946
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
947
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
948
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:21:11 UTC +00:00]]
949
+  (0.1ms) RELEASE SAVEPOINT active_record_1
950
+  (1.1ms) rollback transaction
951
+  (49.1ms) DROP TABLE "simples"
952
+  (2.7ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)
953
+  (3.3ms) DROP TABLE "translatable_translations"
954
+  (3.7ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "slug" varchar(255), "age" integer, "created_at" datetime, "updated_at" datetime)
955
+  (4.0ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
956
+  (2.9ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
957
+  (2.6ms) DROP TABLE "translatables"
958
+  (4.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)
959
+  (3.2ms) DROP TABLE "withouts"
960
+  (2.8ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
961
+  (0.1ms) SELECT version FROM "schema_migrations"
962
+  (0.1ms) begin transaction
963
+ ----------------------------------------------------
964
+ RecordsTest: test_should_assign_index_for_same_slugs
965
+ ----------------------------------------------------
966
+  (0.1ms) SAVEPOINT active_record_1
967
+ SQL (2.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:21:17 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:17 UTC +00:00]]
968
+  (0.1ms) RELEASE SAVEPOINT active_record_1
969
+  (0.1ms) SAVEPOINT active_record_1
970
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
971
+ SQL (0.5ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:21:17 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:17 UTC +00:00]]
972
+  (0.1ms) RELEASE SAVEPOINT active_record_1
973
+  (0.1ms) SAVEPOINT active_record_1
974
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
975
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:17 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:17 UTC +00:00]]
976
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:21:17 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:21:17 UTC +00:00]]
977
+  (0.0ms) RELEASE SAVEPOINT active_record_1
978
+  (0.0ms) SAVEPOINT active_record_1
979
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1
980
+ SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 19 Aug 2013 19:21:17 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Mon, 19 Aug 2013 19:21:17 UTC +00:00]]
981
+  (0.0ms) RELEASE SAVEPOINT active_record_1
982
+  (0.0ms) SAVEPOINT active_record_1
983
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1
984
+ SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Mon, 19 Aug 2013 19:21:17 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Mon, 19 Aug 2013 19:21:17 UTC +00:00]]
985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
986
+  (0.0ms) SAVEPOINT active_record_1
987
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1
988
+ SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Mon, 19 Aug 2013 19:21:17 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Mon, 19 Aug 2013 19:21:17 UTC +00:00]]
989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
990
+  (0.0ms) SAVEPOINT active_record_1
991
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1
992
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["name", "other"], ["slug", "other"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
993
+  (0.0ms) RELEASE SAVEPOINT active_record_1
994
+  (0.0ms) SAVEPOINT active_record_1
995
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1
996
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other-1"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
998
+  (0.0ms) SAVEPOINT active_record_1
999
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1
1000
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 4 [["name", "other"], ["slug", "other-2"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1001
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1002
+  (0.0ms) SAVEPOINT active_record_1
1003
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
1004
+ SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1005
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 2], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1006
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1007
+  (0.0ms) SAVEPOINT active_record_1
1008
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
1009
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (2) AND ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC
1010
+ SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1011
+ SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 3], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1013
+  (0.0ms) SAVEPOINT active_record_1
1014
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
1015
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (3) AND ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') ORDER BY t.slug DESC
1016
+ SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1017
+ SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 4], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1018
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1019
+  (0.0ms) SAVEPOINT active_record_1
1020
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
1021
+ SQL (0.2ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["name", "other"], ["slug", "other"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1022
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1023
+  (0.0ms) SAVEPOINT active_record_1
1024
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
1025
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (2) AND ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC
1026
+ SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other-1"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1027
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1028
+  (0.0ms) SAVEPOINT active_record_1
1029
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
1030
+ SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."dummy" AS t0_r1, "translatables"."created_at" AS t0_r2, "translatables"."updated_at" AS t0_r3, "translatable_translations"."id" AS t1_r0, "translatable_translations"."translatable_id" AS t1_r1, "translatable_translations"."locale" AS t1_r2, "translatable_translations"."name" AS t1_r3, "translatable_translations"."slug" AS t1_r4, "translatable_translations"."age" AS t1_r5, "translatable_translations"."created_at" AS t1_r6, "translatable_translations"."updated_at" AS t1_r7 FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE "translatables"."id" IN (3) AND ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') ORDER BY t.slug DESC
1031
+ SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 4 [["name", "other"], ["slug", "other-2"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1032
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1033
+  (1.3ms) rollback transaction
1034
+  (0.1ms) begin transaction
1035
+ ------------------------------------
1036
+ RecordsTest: test_should_create_slug
1037
+ ------------------------------------
1038
+  (0.0ms) SAVEPOINT active_record_1
1039
+ SQL (0.4ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1040
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1041
+  (0.0ms) SAVEPOINT active_record_1
1042
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
1043
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1044
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1045
+  (0.0ms) SAVEPOINT active_record_1
1046
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
1047
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1048
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1049
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1050
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1
1051
+ Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'translatable-name' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1
1052
+ TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)
1053
+  (0.9ms) rollback transaction
1054
+  (0.1ms) begin transaction
1055
+ ----------------------------------
1056
+ RecordsTest: test_should_edit_slug
1057
+ ----------------------------------
1058
+  (0.0ms) SAVEPOINT active_record_1
1059
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1061
+  (0.0ms) SAVEPOINT active_record_1
1062
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
1063
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1064
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1065
+  (0.0ms) SAVEPOINT active_record_1
1066
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
1067
+ SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1068
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1069
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1070
+  (0.0ms) SAVEPOINT active_record_1
1071
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1
1072
+ SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1073
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1074
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1
1075
+  (0.0ms) SAVEPOINT active_record_1
1076
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'new-translatable-name' OR t.slug LIKE 'new-translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
1077
+ SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "new translatable name"], ["slug", "new-translatable-name"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1078
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1079
+ Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'new-translatable-name' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1
1080
+ TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)
1081
+  (1.3ms) rollback transaction
1082
+  (0.1ms) begin transaction
1083
+ -------------------------------------------------------
1084
+ RecordsTest: test_should_not_alter_direct_assigned_slug
1085
+ -------------------------------------------------------
1086
+  (0.0ms) SAVEPOINT active_record_1
1087
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1089
+  (0.0ms) SAVEPOINT active_record_1
1090
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
1091
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1092
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1093
+  (0.1ms) SAVEPOINT active_record_1
1094
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
1095
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1096
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1098
+  (0.1ms) SAVEPOINT active_record_1
1099
+ SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1101
+ Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1
1102
+  (0.0ms) SAVEPOINT active_record_1
1103
+ SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1104
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1105
+ Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'translatable direct slug' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1
1106
+ TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)
1107
+  (1.1ms) rollback transaction
1108
+  (0.0ms) begin transaction
1109
+ -----------------------------------------
1110
+ RecordsTest: test_should_not_break_models
1111
+ -----------------------------------------
1112
+  (0.1ms) SAVEPOINT active_record_1
1113
+ SQL (0.5ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1114
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1115
+  (0.1ms) SAVEPOINT active_record_1
1116
+ Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
1117
+ SQL (0.5ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1118
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1119
+  (0.1ms) SAVEPOINT active_record_1
1120
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
1121
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1122
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1123
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1124
+ Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]]
1125
+ Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]
1126
+  (0.8ms) rollback transaction
1127
+  (0.0ms) begin transaction
1128
+ ---------------------------------------------
1129
+ RecordsTest: test_should_not_break_validation
1130
+ ---------------------------------------------
1131
+  (0.0ms) SAVEPOINT active_record_1
1132
+ SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["name", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1134
+  (0.0ms) SAVEPOINT active_record_1
1135
+ Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1
1136
+ SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1137
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1138
+  (0.1ms) SAVEPOINT active_record_1
1139
+ SQL (0.2ms) SELECT DISTINCT "translatables".id FROM "translatables" LEFT OUTER JOIN "translatable_translations" ON "translatable_translations"."translatable_id" = "translatables"."id" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug = 'translatable-name' OR t.slug LIKE 'translatable-name-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1
1140
+ SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1141
+ SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Mon, 19 Aug 2013 19:21:18 UTC +00:00]]
1142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1143
+  (0.8ms) rollback transaction