(2.9ms) DROP TABLE "simples"  (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.2ms) DROP TABLE "translatable_translations"  (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)  (11.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (3.4ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (3.0ms) DROP TABLE "translatables"  (2.8ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)  (3.0ms) DROP TABLE "withouts"  (3.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------------- RecordsTest: test_shoud_create_slug -----------------------------------  (0.1ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.4ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (2.5ms) DROP TABLE "simples"  (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)  (2.9ms) DROP TABLE "translatable_translations"  (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)  (3.6ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (2.8ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (2.7ms) DROP TABLE "translatables"  (2.9ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)  (2.6ms) DROP TABLE "withouts"  (3.7ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------------- RecordsTest: test_shoud_create_slug -----------------------------------  (0.1ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (1.0ms) rollback transaction  (54.0ms) DROP TABLE "simples"  (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)  (3.6ms) DROP TABLE "translatable_translations"  (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)  (3.5ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (3.0ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (2.8ms) DROP TABLE "translatables"  (3.9ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)  (3.2ms) DROP TABLE "withouts"  (2.7ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------------- RecordsTest: test_shoud_create_slug -----------------------------------  (0.1ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1 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 TranslatableTranslation Load (0.3ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (1.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (1.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (1.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (55.9ms) DROP TABLE "simples"  (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)  (2.7ms) DROP TABLE "translatable_translations"  (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)  (3.7ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (3.0ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (2.8ms) DROP TABLE "translatables"  (3.9ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)  (3.1ms) DROP TABLE "withouts"  (2.8ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------------- RecordsTest: test_shoud_create_slug -----------------------------------  (0.1ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (2.0ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1 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 TranslatableTranslation Load (1.7ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (26.0ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]] 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (20.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (166.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (54.4ms) DROP TABLE "simples"  (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)  (3.5ms) DROP TABLE "translatable_translations"  (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)  (3.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (3.2ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (3.0ms) DROP TABLE "translatables"  (2.9ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)  (2.8ms) DROP TABLE "withouts"  (2.8ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------------- RecordsTest: test_shoud_create_slug -----------------------------------  (0.1ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1 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 TranslatableTranslation Load (0.3ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (1.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (1.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (1.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (51.0ms) DROP TABLE "simples"  (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)  (3.1ms) DROP TABLE "translatable_translations"  (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)  (3.4ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (2.9ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (3.3ms) DROP TABLE "translatables"  (3.3ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)  (4.3ms) DROP TABLE "withouts"  (2.9ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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 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]] 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (1.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (1.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (1.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (49.1ms) DROP TABLE "simples"  (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)  (3.3ms) DROP TABLE "translatable_translations"  (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)  (4.0ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (2.9ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (2.6ms) DROP TABLE "translatables"  (4.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)  (3.2ms) DROP TABLE "withouts"  (2.8ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (1.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (1.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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]] 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (1.0ms) DROP TABLE "simples"  (0.8ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.9ms) DROP TABLE "translatable_translations"  (1.3ms) 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)  (0.8ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.8ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.8ms) DROP TABLE "translatables"  (1.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.7ms) DROP TABLE "withouts"  (1.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (25.0ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 06 Dec 2013 00:32:12 UTC +00:00], ["name", "name"], ["updated_at", Fri, 06 Dec 2013 00:32:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (1.8ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["name", "other"], ["slug", "other"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other-1"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 4 [["name", "other"], ["slug", "other-2"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 2], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') AND "translatables"."id" IN (2) ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 3], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') AND "translatables"."id" IN (3) ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 4], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["name", "other"], ["slug", "other"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') AND "translatables"."id" IN (2) ORDER BY t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other-1"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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 ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') AND "translatables"."id" IN (3) ORDER BY t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 4 [["name", "other"], ["slug", "other-2"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["name", "name"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.4ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1 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 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["name", "name"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 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", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["name", "name"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["name", "name"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["name", "name"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Fri, 06 Dec 2013 00:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.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)   (0.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)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.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)   (0.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)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.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)   (0.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)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (3.7ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.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)   (0.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)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:21:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.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)   (0.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)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:24:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.3ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.2ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:25:32 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:25:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:25:32 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:25:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:25:32 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:25:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:25:32 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:25:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:25:32 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:25:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:25:32 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:25:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["name", "same"], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."id" = ? LIMIT 1 [["id", "direct slug"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 17:26:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00], ["name", "same"], ["updated_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "simples" SET "name" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["updated_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE "simples"."id" = ? LIMIT 1 [["id", "direct slug"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:31:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 17:36:12 UTC +00:00], ["name", "same"], ["updated_at", Tue, 25 Feb 2014 17:36:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:36:12 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:36:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:36:12 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:36:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["updated_at", Tue, 25 Feb 2014 17:36:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:36:12 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:36:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 17:36:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."id" = ? LIMIT 1 [["id", "direct slug"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:36:12 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:36:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 17:37:44 UTC +00:00], ["name", "same"], ["updated_at", Tue, 25 Feb 2014 17:37:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:37:44 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:37:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:37:44 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:37:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "simples" SET "name" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["updated_at", Tue, 25 Feb 2014 17:37:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:37:44 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:37:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 17:37:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."id" = ? LIMIT 1 [["id", "direct slug"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:37:44 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:37:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (3.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 17:37:57 UTC +00:00], ["name", "same"], ["updated_at", Tue, 25 Feb 2014 17:37:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:37:57 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:37:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:37:57 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:37:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "simples" SET "name" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["updated_at", Tue, 25 Feb 2014 17:37:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:37:57 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:37:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 17:37:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."id" = ? LIMIT 1 [["id", "direct slug"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:37:57 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:37:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (3.6ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 17:39:52 UTC +00:00], ["name", "same"], ["updated_at", Tue, 25 Feb 2014 17:39:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:39:52 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:39:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:39:52 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:39:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "simples" SET "name" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["updated_at", Tue, 25 Feb 2014 17:39:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:39:52 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:39:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 17:39:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."id" = ? LIMIT 1 [["id", "direct slug"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:39:52 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:39:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 17:55:11 UTC +00:00], ["name", "same"], ["updated_at", Tue, 25 Feb 2014 17:55:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:55:11 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:55:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:55:11 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:55:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "simples" SET "name" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["updated_at", Tue, 25 Feb 2014 17:55:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:55:11 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:55:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 17:55:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."id" = ? LIMIT 1 [["id", "direct slug"]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:55:11 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:55:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 17:58:06 UTC +00:00], ["name", "same"], ["updated_at", Tue, 25 Feb 2014 17:58:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:58:06 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:58:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:58:06 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:58:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["updated_at", Tue, 25 Feb 2014 17:58:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:58:06 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:58:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 17:58:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."id" = ? LIMIT 1 [["id", "direct slug"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:58:06 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:58:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.2ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.2ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 17:58:26 UTC +00:00], ["name", "same"], ["updated_at", Tue, 25 Feb 2014 17:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:58:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:58:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:58:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:58:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "simples" SET "name" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["updated_at", Tue, 25 Feb 2014 17:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:58:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 17:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."id" = ? LIMIT 1 [["id", "direct slug"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:58:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 17:58:40 UTC +00:00], ["name", "same"], ["updated_at", Tue, 25 Feb 2014 17:58:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:58:40 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:58:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:58:40 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:58:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "simples" SET "name" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["updated_at", Tue, 25 Feb 2014 17:58:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 17:58:40 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:58:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 17:58:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."id" = ? LIMIT 1 [["id", "direct slug"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 17:58:40 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 17:58:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.2ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.2ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (4.0ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["name", "other"], ["slug", "other-1"], ["updated_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other-2"], ["updated_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- RecordsTest: test_should_edit_slug ----------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 18:06:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.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)   (0.2ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (3.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["locale", "en"], ["name", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "editable"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["slug", "translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 Translatable Load (0.0ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "translatable-name"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["slug", "translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatables" SET "slug" = ?, "updated_at" = ? WHERE "translatables"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 Translatable Load (0.0ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "translatable direct slug"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["slug", "translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.1ms) UPDATE "translatables" SET "slug" = ?, "updated_at" = ? WHERE "translatables"."id" = 1 [["slug", "new-translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]] SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "new translatable name"], ["updated_at", Tue, 25 Feb 2014 18:23:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 Translatable Load (0.0ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "new-translatable-name"]]  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.2ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["locale", "en"], ["name", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "editable"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["slug", "translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "translatable-name"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["slug", "translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatables" SET "slug" = ?, "updated_at" = ? WHERE "translatables"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 Translatable Load (0.0ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "translatable direct slug"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["slug", "translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) UPDATE "translatables" SET "slug" = ?, "updated_at" = ? WHERE "translatables"."id" = 1 [["slug", "new-translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]] SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "new translatable name"], ["updated_at", Tue, 25 Feb 2014 18:24:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "new-translatable-name"]]  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.0ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["locale", "en"], ["name", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["slug", "translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["slug", "translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatables" SET "slug" = ?, "updated_at" = ? WHERE "translatables"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.2ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["slug", "translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) UPDATE "translatables" SET "slug" = ?, "updated_at" = ? WHERE "translatables"."id" = 1 [["slug", "new-translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]] SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "new translatable name"], ["updated_at", Tue, 25 Feb 2014 18:34:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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  (0.3ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.5ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["locale", "en"], ["name", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "editable"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["slug", "translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "translatable-name"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["slug", "translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatables" SET "slug" = ?, "updated_at" = ? WHERE "translatables"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 Translatable Load (0.0ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "translatable direct slug"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["slug", "translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) UPDATE "translatables" SET "slug" = ?, "updated_at" = ? WHERE "translatables"."id" = 1 [["slug", "new-translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]] SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "new translatable name"], ["updated_at", Tue, 25 Feb 2014 18:41:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "new-translatable-name"]]  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:42:58 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 18:42:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples"  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.3ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["locale", "en"], ["name", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1) Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "editable"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["slug", "translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1) 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 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "translatable-name"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["slug", "translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "translatables" SET "slug" = ?, "updated_at" = ? WHERE "translatables"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1) 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 Translatable Load (0.0ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "translatable direct slug"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "slug", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["slug", "translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) UPDATE "translatables" SET "slug" = ?, "updated_at" = ? WHERE "translatables"."id" = 1 [["slug", "new-translatable-name"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]] SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "new translatable name"], ["updated_at", Tue, 25 Feb 2014 18:44:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1) 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 Translatable Load (0.0ms) SELECT "translatables".* FROM "translatables" WHERE "translatables"."id" = ? LIMIT 1 [["id", "new-translatable-name"]]  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.4ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.0ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.3ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:47:35 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 18:47:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.6ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.4ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.4ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 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", Tue, 25 Feb 2014 18:48:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.5ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:00:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.4ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 SQL (0.3ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]] SQL (0.3ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "new translatable name"], ["slug", "new-translatable-name"], ["updated_at", Tue, 25 Feb 2014 19:00:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]] SQL (0.3ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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", Tue, 25 Feb 2014 19:05:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.5ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:05:45 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:05:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:05:45 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:05:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:05:45 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:05:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:05:45 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:05:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:05:45 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:05:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:10:56 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:10:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.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)   (0.2ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.5ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:11:27 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:11:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:11:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:11:27 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:11:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:11:27 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:11:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:11:27 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:11:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.4ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.4ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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", Tue, 25 Feb 2014 19:12:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["name", "other"], ["slug", "other-1"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other-2"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') AND "translatables"."id" IN (1) ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 2], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') AND "translatables"."id" IN (2) ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 3], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') AND "translatables"."id" IN (1) ORDER BY t.slug DESC SQL (0.2ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["name", "other"], ["slug", "other-1"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') AND "translatables"."id" IN (2) ORDER BY t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other-2"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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", Tue, 25 Feb 2014 19:20:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.5ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same1' OR slug LIKE 'same1-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["name", "same1"], ["slug", "same1"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same1' OR slug LIKE 'same1-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["name", "same1"], ["slug", "same1-1"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same1' OR slug LIKE 'same1-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["name", "same1"], ["slug", "same1-2"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["name", "other"], ["slug", "other-1"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other' OR slug LIKE 'other-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other-2"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') AND "translatables"."id" IN (1) ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 2], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') AND "translatables"."id" IN (2) ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 3], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') AND "translatables"."id" IN (1) ORDER BY t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["name", "other"], ["slug", "other-1"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') AND "translatables"."id" IN (2) ORDER BY t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other-2"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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", Tue, 25 Feb 2014 19:26:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same1' OR slug LIKE 'same1-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["name", "same1"], ["slug", "same1"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same1' OR slug LIKE 'same1-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["name", "same1"], ["slug", "same1-1"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same1' OR slug LIKE 'same1-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["name", "same1"], ["slug", "same1-2"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other1' OR slug LIKE 'other1-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "other1"], ["slug", "other1"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other1' OR slug LIKE 'other1-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["name", "other1"], ["slug", "other1-1"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other1' OR slug LIKE 'other1-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other1"], ["slug", "other1-2"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') AND "translatables"."id" IN (1) ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 2], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 SQL (0.3ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') AND "translatables"."id" IN (2) ORDER BY t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 3], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.2ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') AND "translatables"."id" IN (1) ORDER BY t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["name", "other"], ["slug", "other-1"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') AND "translatables"."id" IN (2) ORDER BY t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other-2"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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", Tue, 25 Feb 2014 19:27:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.0ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'bruja-to019' OR slug LIKE 'bruja-to019-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00], ["name", "Bruja - TO019"], ["slug", "bruja-to019"], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'bruja-to019' OR slug LIKE 'bruja-to019-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00], ["name", "Bruja - TO019"], ["slug", "bruja-to019-1"], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'bruja-to019' OR slug LIKE 'bruja-to019-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00], ["name", "Bruja - TO019"], ["slug", "bruja-to019-2"], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other1' OR slug LIKE 'other1-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "other1"], ["slug", "other1"], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other1' OR slug LIKE 'other1-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["name", "other1"], ["slug", "other1-1"], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'other1' OR slug LIKE 'other1-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other1"], ["slug", "other1-2"], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') AND "translatables"."id" IN (1) ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 2], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'same' OR t.slug LIKE 'same-_') AND t.locale = 'en') AND "translatables"."id" IN (2) ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 3], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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 SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') AND "translatables"."id" IN (1) ORDER BY t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["name", "other"], ["slug", "other-1"], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug = 'other' OR t.slug LIKE 'other-_') AND t.locale = 'en') AND "translatables"."id" IN (2) ORDER BY t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other-2"], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:29:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:29:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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", Tue, 25 Feb 2014 19:29:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.2ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.2ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.0ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'bruja-to019' OR slug LIKE 'bruja-to019-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["name", "Bruja - TO019"], ["slug", "bruja-to019"], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'bruja-to019' OR slug LIKE 'bruja-to019-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["name", "Bruja - TO019"], ["slug", "bruja-to019-1"], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'bruja-to019' OR slug LIKE 'bruja-to019-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["name", "Bruja - TO019"], ["slug", "bruja-to019-2"], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'bruja-to019' OR slug LIKE 'bruja-to019-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["slug", "bruja-to019-3"], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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", Tue, 25 Feb 2014 19:30:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.0ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (2.3ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'bruja-to019' OR slug LIKE 'bruja-to019-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["name", "Bruja - TO019"], ["slug", "bruja-to019"], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'bruja-to019' OR slug LIKE 'bruja-to019-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["name", "Bruja - TO019"], ["slug", "bruja-to019-1"], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'bruja-to019' OR slug LIKE 'bruja-to019-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["name", "Bruja - TO019"], ["slug", "bruja-to019-2"], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]] SQL (0.3ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.2ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "new translatable name"], ["slug", "new-translatable-name"], ["updated_at", Tue, 25 Feb 2014 19:30:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.0ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'editable' OR slug LIKE 'editable-_')) ORDER BY slug DESC LIMIT 1 SQL (3.0ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 = 'editable' OR t.slug LIKE 'editable-_') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'same' OR slug LIKE 'same-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'name' OR slug LIKE 'name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug = 'new-name' OR slug LIKE 'new-name-_')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 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", Tue, 25 Feb 2014 19:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.0ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'editable-_' OR slug = 'editable')) ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.2ms) SAVEPOINT active_record_1 Simple Load (0.4ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'new-name-_' OR slug = 'new-name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'new-translatable-name-_' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 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", Tue, 25 Feb 2014 19:33:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.0ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'editable-_' OR slug = 'editable')) ORDER BY slug ASC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug ASC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.4ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug ASC LIMIT 1 SQL (0.4ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'new-name-_' OR slug = 'new-name')) ORDER BY slug ASC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'new-translatable-name-_' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 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", Tue, 25 Feb 2014 19:34:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.2ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'editable-_' OR slug = 'editable')) ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "name-1"], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'new-name-_' OR slug = 'new-name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:36:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'new-translatable-name-_' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 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", Tue, 25 Feb 2014 19:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.2ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'editable-_' OR slug = 'editable')) ORDER BY slug DESC LIMIT 1 SQL (2.5ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'new-name-_' OR slug = 'new-name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'new-translatable-name-_' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 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", Tue, 25 Feb 2014 19:36:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'editable-_' OR slug = 'editable')) ORDER BY slug DESC LIMIT 1 SQL (2.3ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:38:04 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:38:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:38:04 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:38:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:38:04 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:38:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:38:04 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:38:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:38:04 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:38:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:38:04 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 19:38:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.5ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.0ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'editable-_' OR slug = 'editable')) ORDER BY slug DESC LIMIT 1 SQL (2.3ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'other-_' OR slug = 'other')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') AND "translatables"."id" IN (1) ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 2], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') AND "translatables"."id" IN (2) ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 3], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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 LIKE 'other-_' OR t.slug = 'other') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'other-_' OR t.slug = 'other') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug LIKE 'other-_' OR t.slug = 'other') AND t.locale = 'en') AND "translatables"."id" IN (1) ORDER BY t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["name", "other"], ["slug", "other-1"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'other-_' OR t.slug = 'other') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug LIKE 'other-_' OR t.slug = 'other') AND t.locale = 'en') AND "translatables"."id" IN (2) ORDER BY t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other-2"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'new-name-_' OR slug = 'new-name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'new-translatable-name-_' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 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", Tue, 25 Feb 2014 19:42:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'editable-_' OR slug = 'editable')) ORDER BY slug DESC LIMIT 1 SQL (2.3ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 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 LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'other-_' OR slug = 'other')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') AND "translatables"."id" IN (1) ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 2], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') AND "translatables"."id" IN (2) ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 3], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) SELECT "translatables"."id" AS t0_r0, "translatables"."name" AS t0_r1, "translatables"."age" AS t0_r2, "translatables"."slug" AS t0_r3, "translatables"."created_at" AS t0_r4, "translatables"."updated_at" AS t0_r5, "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"."age" AS t1_r4, "translatable_translations"."slug" 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 ((t.slug LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') AND "translatables"."id" IN (3) ORDER BY t.slug DESC SQL (0.2ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'other-_' OR t.slug = 'other') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'new-name-_' OR slug = 'new-name')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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 LIKE 'new-translatable-name-_' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 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", Tue, 25 Feb 2014 19:44:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'editable-_' OR slug = 'editable')) ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'same-_' OR slug = 'same')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'other-_' OR slug = 'other')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 2], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 3], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-_' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'other-_' OR t.slug = 'other') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'name-_' OR slug = 'name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE ((slug LIKE 'new-name-_' OR slug = 'new-name')) ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-_' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 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", Tue, 25 Feb 2014 19:54:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-_' OR slug = 'editable') ORDER BY slug DESC LIMIT 1 SQL (2.6ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-4"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-5"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-6"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-7"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-8"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-9"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-_' OR slug = 'name') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-_' OR slug = 'name') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.3ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-_' OR slug = 'name') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'new-name-_' OR slug = 'new-name') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-_' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 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", Tue, 25 Feb 2014 21:19:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.4ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-_' OR slug = 'editable') ORDER BY slug DESC LIMIT 1 SQL (3.0ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-4"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-5"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-6"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-7"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-8"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-9"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ***** Debugger requested, but was not available (ensure the debugger gem is listed in Gemfile/installed as gem): Start server with --debugger to enable *****  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-_' OR slug = 'name') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-_' OR slug = 'name') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.2ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-_' OR slug = 'name') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'new-name-_' OR slug = 'new-name') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-_' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-_' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 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", Tue, 25 Feb 2014 21:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-_' OR slug = 'editable') ORDER BY slug DESC LIMIT 1 SQL (2.3ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:20:28 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 21:20:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.3ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:20:28 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:20:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:20:28 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:20:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 21:20:28 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 21:20:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:28 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:20:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:28 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 21:20:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:28 UTC +00:00], ["name", "same"], ["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 21:20:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-4"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-5"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-6"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-7"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-8"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-9"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.5ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_' OR slug = 'same') ORDER BY slug DESC LIMIT 1  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-_+' OR slug = 'editable') ORDER BY slug DESC LIMIT 1 SQL (2.5ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-_+' OR slug = 'same') ORDER BY slug DESC LIMIT 1  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-[0-9]+' OR slug = 'editable') ORDER BY slug DESC LIMIT 1 SQL (2.6ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:24:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (1.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-[0-9]+' OR slug = 'same') ORDER BY slug DESC LIMIT 1  (0.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)   (0.2ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.4ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-4"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-5"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-6"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-7"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-8"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-9"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:31:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.6ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.3ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-4"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-5"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-6"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-7"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-8"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-9"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.6ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.3ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-4"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-5"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-6"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-7"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-8"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-9"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.5ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.3ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.4ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:33:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'same-10' LIMIT 1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'same-11' LIMIT 1  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY slug ASC LIMIT 1 SQL (2.6ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:43:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.4ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug ASC LIMIT 1  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY slug DESC LIMIT 1 SQL (2.5ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-_' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-4"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-5"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-6"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-7"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-8"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-9"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Tue, 25 Feb 2014 21:46:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY slug DESC LIMIT 1 SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'other-%' OR slug = 'other') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 2], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 3], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'other-%' OR t.slug = 'other') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC LIMIT 1 SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY slug DESC LIMIT 1 SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC LIMIT 1 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", Tue, 25 Feb 2014 21:53:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY slug DESC SQL (2.2ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:29:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC 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", Tue, 25 Feb 2014 22:29:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.2ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY slug DESC SQL (2.3ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'other-%' OR slug = 'other') ORDER BY slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 2], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC 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", Tue, 25 Feb 2014 22:31:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.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)   (0.2ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY slug DESC SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC 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", Tue, 25 Feb 2014 22:31:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY slug DESC SQL (2.3ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'other-%' OR slug = 'other') ORDER BY slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 2], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.4ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.2ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["name", "new translatable name"], ["slug", "new-translatable-name"], ["updated_at", Tue, 25 Feb 2014 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY slug DESC SQL (2.3ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.2ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'other-%' OR slug = 'other') ORDER BY slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 2], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 3], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'other-%' OR t.slug = 'other') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC 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", Tue, 25 Feb 2014 22:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY slug DESC SQL (2.2ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:44:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC 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", Tue, 25 Feb 2014 22:44:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY slug DESC SQL (2.3ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.4ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.3ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]] SQL (0.3ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.3ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY slug DESC SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 2 [["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'other-%' OR slug = 'other') ORDER BY slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 3 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 2], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 3], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["slug", "same-3"], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'other-%' OR t.slug = 'other') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 3 [["name", "other"], ["slug", "other"], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["name", "name"], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY t.slug DESC 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", Tue, 25 Feb 2014 22:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.4ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY LENGTH(slug) DESC, slug DESC SQL (5.3ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.3ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-3"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-4"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-5"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-6"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-7"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-8"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-9"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-11"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-12"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-13"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-14"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-15"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-16"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-17"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-18"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-19"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-20"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-21"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-22"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 22 [["slug", "same-23"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'other-%' OR slug = 'other') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 23 [["name", "other"], ["slug", "other"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-24"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-25"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-26"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-27"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-28"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-29"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-30"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-31"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-32"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-33"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-34"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-35"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-36"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-37"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-38"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-39"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-40"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-41"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.4ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-42"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (1.0ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "same"], ["slug", "same-43"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 2], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 3], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 2 [["slug", "same-3"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "name"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:27:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Wed, 26 Feb 2014 14:27:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:16 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:16 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:27:16 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:27:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC 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", Wed, 26 Feb 2014 14:27:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.0ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY LENGTH(slug) DESC, slug DESC SQL (2.3ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-3"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-4"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-5"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-6"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-7"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-8"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-9"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-11"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-12"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-13"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-14"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-15"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-16"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-17"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-18"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-19"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-20"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-21"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.3ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "same"], ["slug", "same-22"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Simple Load (0.4ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 22 [["slug", "same-23"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'other-%' OR slug = 'other') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 23 [["name", "other"], ["slug", "other"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 2], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 3], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-3"], ["translatable_id", 4], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-4"], ["translatable_id", 5], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-5"], ["translatable_id", 6], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-6"], ["translatable_id", 7], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-7"], ["translatable_id", 8], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-8"], ["translatable_id", 9], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 9]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-9"], ["translatable_id", 10], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 10]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 9]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-10"], ["translatable_id", 11], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 11]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 10]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 9]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-11"], ["translatable_id", 12], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 12]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 11]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 10]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 9]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-12"], ["translatable_id", 13], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 13]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 12]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 11]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 10]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 9]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-13"], ["translatable_id", 14], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 14]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 13]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 12]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 11]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 10]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 9]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-14"], ["translatable_id", 15], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 15]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 14]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 13]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 12]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 11]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 10]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 9]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (1.9ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-15"], ["translatable_id", 16], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 16]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 15]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 14]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 13]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 12]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 11]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 10]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 9]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-16"], ["translatable_id", 17], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 17]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 16]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 15]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 14]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 13]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 12]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 11]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 10]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 9]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-17"], ["translatable_id", 18], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 18]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 17]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 16]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 15]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 14]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 13]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 12]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 11]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 10]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 9]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-18"], ["translatable_id", 19], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 19]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 18]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 17]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 16]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 15]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 14]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 13]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 12]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 11]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 10]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 9]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-19"], ["translatable_id", 20], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 20]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 19]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 18]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 17]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 16]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 15]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 14]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 13]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 12]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 11]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 10]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 9]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-20"], ["translatable_id", 21], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 21]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 20]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 19]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 18]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 17]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 16]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 15]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 14]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 13]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 12]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 11]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 10]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 9]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-21"], ["translatable_id", 22], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 22]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 21]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 20]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 19]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 18]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 17]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 16]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 15]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 14]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 13]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 12]] TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 11]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 10]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 9]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-22"], ["translatable_id", 23], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 23]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 22]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 21]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 20]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 19]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 18]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 17]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 16]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 15]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 14]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 13]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 12]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 11]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 10]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 9]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 8]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 7]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 6]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 5]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 4]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 3]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 2]] TranslatableTranslation Load (0.0ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" = ? [["translatable_id", 1]] SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 22 [["slug", "same-23"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'other-%' OR t.slug = 'other') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 23 [["name", "other"], ["slug", "other"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "name"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC 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", Wed, 26 Feb 2014 14:27:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY LENGTH(slug) DESC, slug DESC SQL (2.7ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-3"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-4"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-5"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-6"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-7"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-8"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-9"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-11"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-12"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-13"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-14"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-15"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-16"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-17"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-18"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-19"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-20"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-21"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "same"], ["slug", "same-22"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 22 [["slug", "same-23"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'other-%' OR slug = 'other') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 23 [["name", "other"], ["slug", "other"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 2], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.3ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 3], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 4], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 5], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 6], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 7], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 8], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 9], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 10], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 11], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 12], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 13], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 14], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 15], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 16], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 17], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 18], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 19], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 20], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 21], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 22], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "name"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC 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", Wed, 26 Feb 2014 14:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY LENGTH(slug) DESC, slug DESC SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00], ["name", "name"], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:37:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC 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", Wed, 26 Feb 2014 14:37:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY LENGTH(slug) DESC, slug DESC SQL (2.5ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.2ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.2ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-3"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-4"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-5"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-6"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-7"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-8"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-9"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-11"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-12"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-13"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-14"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-15"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-16"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-17"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-18"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-19"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-20"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-21"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "same"], ["slug", "same-22"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 22 [["slug", "same-23"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'other-%' OR slug = 'other') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 23 [["name", "other"], ["slug", "other"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 2], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 3], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 4], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 5], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 6], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 7], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 8], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 9], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 10], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 11], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 12], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 13], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 14], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 15], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 16], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 17], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 18], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 19], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 20], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 21], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 22], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "name"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC 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", Wed, 26 Feb 2014 14:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.6ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.2ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.2ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY LENGTH(slug) DESC, slug DESC SQL (2.3ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "name"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.2ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "simples"."slug" FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT "translatables"."slug" FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC 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", Wed, 26 Feb 2014 14:39:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.0ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY LENGTH(slug) DESC, slug DESC SQL (2.5ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.1ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-3"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-4"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-5"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-6"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-7"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-8"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-9"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-11"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-12"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-13"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-14"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-15"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-16"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-17"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-18"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-19"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-20"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-21"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "same"], ["slug", "same-22"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 22 [["slug", "same-23"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'other-%' OR slug = 'other') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 23 [["name", "other"], ["slug", "other"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 2], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 3], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-3"], ["translatable_id", 4], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-4"], ["translatable_id", 5], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-5"], ["translatable_id", 6], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-6"], ["translatable_id", 7], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-7"], ["translatable_id", 8], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-8"], ["translatable_id", 9], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-9"], ["translatable_id", 10], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-10"], ["translatable_id", 11], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-11"], ["translatable_id", 12], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-12"], ["translatable_id", 13], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-13"], ["translatable_id", 14], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-14"], ["translatable_id", 15], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-15"], ["translatable_id", 16], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-16"], ["translatable_id", 17], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-17"], ["translatable_id", 18], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-18"], ["translatable_id", 19], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-19"], ["translatable_id", 20], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-20"], ["translatable_id", 21], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-21"], ["translatable_id", 22], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-22"], ["translatable_id", 23], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 22 [["slug", "same-23"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'other-%' OR t.slug = 'other') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 23 [["name", "other"], ["slug", "other"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "name"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC 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", Wed, 26 Feb 2014 14:40:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.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)   (0.1ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")  (0.1ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')  (0.1ms) begin transaction ------------------------------------------------ RecordsTest: test_records_should_not_be_readonly ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'editable-%' OR slug = 'editable') ORDER BY LENGTH(slug) DESC, slug DESC SQL (2.4ms) INSERT INTO "simples" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "editable"], ["slug", "editable"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'editable' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'editable-%' OR t.slug = 'editable') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "editable"], ["slug", "editable"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) SELECT "translatables".* FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE (t.slug = 'editable' AND t.locale = 'en') ORDER BY "translatables"."id" ASC LIMIT 1 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- RecordsTest: test_should_assign_index_for_same_slugs ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.2ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-1"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-2"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-3"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-4"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-5"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-6"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-7"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-8"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-9"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-10"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-11"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-12"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-13"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-14"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-15"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-16"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-17"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-18"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-19"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-20"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 45], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-21"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 234], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "same"], ["slug", "same-22"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT slug FROM "simples" WHERE (slug LIKE 'same-%' OR slug = 'same') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 22 [["slug", "same-23"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'other-%' OR slug = 'other') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 23 [["name", "other"], ["slug", "other"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-1"], ["translatable_id", 2], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-2"], ["translatable_id", 3], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-3"], ["translatable_id", 4], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-4"], ["translatable_id", 5], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-5"], ["translatable_id", 6], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-6"], ["translatable_id", 7], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-7"], ["translatable_id", 8], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-8"], ["translatable_id", 9], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-9"], ["translatable_id", 10], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-10"], ["translatable_id", 11], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-11"], ["translatable_id", 12], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-12"], ["translatable_id", 13], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-13"], ["translatable_id", 14], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-14"], ["translatable_id", 15], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-15"], ["translatable_id", 16], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-16"], ["translatable_id", 17], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-17"], ["translatable_id", 18], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-18"], ["translatable_id", 19], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-19"], ["translatable_id", 20], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-20"], ["translatable_id", 21], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.2ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 45], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-21"], ["translatable_id", 22], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 234], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "same"], ["slug", "same-22"], ["translatable_id", 23], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'same-%' OR t.slug = 'same') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 22 [["slug", "same-23"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'other-%' OR t.slug = 'other') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) UPDATE "translatable_translations" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 23 [["name", "other"], ["slug", "other"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_create_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- RecordsTest: test_should_not_alter_direct_assigned_slug -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "simples" SET "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["slug", "direct slug"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'direct slug' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "translatable_translations" SET "slug" = ?, "updated_at" = ? WHERE "translatable_translations"."id" = 1 [["slug", "translatable direct slug"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- RecordsTest: test_should_not_break_models -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "withouts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "name"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Without Load (0.1ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", "1"]] Without Load (0.0ms) SELECT "withouts".* FROM "withouts" WHERE "withouts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- RecordsTest: test_should_not_break_validation ---------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ RecordsTest: test_should_update_slug ------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'name-%' OR slug = 'name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) INSERT INTO "simples" ("age", "created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 14], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["name", "name"], ["slug", "name"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT slug FROM "simples" WHERE (slug LIKE 'new-name-%' OR slug = 'new-name') ORDER BY LENGTH(slug) DESC, slug DESC SQL (0.1ms) UPDATE "simples" SET "name" = ?, "slug" = ?, "updated_at" = ? WHERE "simples"."id" = 1 [["name", "new name"], ["slug", "new-name"], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Simple Load (0.1ms) SELECT "simples".* FROM "simples" WHERE "simples"."slug" = 'new-name' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'translatable-name-%' OR t.slug = 'translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC SQL (0.1ms) INSERT INTO "translatables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]] SQL (0.1ms) INSERT INTO "translatable_translations" ("age", "created_at", "locale", "name", "slug", "translatable_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00], ["locale", "en"], ["name", "translatable name"], ["slug", "translatable-name"], ["translatable_id", 1], ["updated_at", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT t.slug FROM "translatables" INNER JOIN translatable_translations t ON t.translatable_id = translatables.id WHERE ((t.slug LIKE 'new-translatable-name-%' OR t.slug = 'new-translatable-name') AND t.locale = 'en') ORDER BY LENGTH(t.slug) DESC, t.slug DESC 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", Wed, 26 Feb 2014 14:40:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Translatable Load (0.2ms) 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 TranslatableTranslation Load (0.1ms) SELECT "translatable_translations".* FROM "translatable_translations" WHERE "translatable_translations"."translatable_id" IN (1)  (0.1ms) rollback transaction