(126.4ms) DROP DATABASE IF EXISTS "slugs_test"  (342.2ms) CREATE DATABASE "slugs_test" ENCODING = 'utf8' SQL (3.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.7ms) CREATE TABLE "categories" ("id" serial primary key, "name" character varying, "shop_id" integer)  (2.2ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "shop_id" integer, "category_id" integer)   (2.0ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying)  (2.0ms) CREATE TABLE "users" ("id" serial primary key, "first_name" character varying, "last_name" character varying)   (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20161016174225')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20161016174020')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20161016174126')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20161016174202') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (167.7ms) DROP DATABASE IF EXISTS "slugs_test"  (361.1ms) CREATE DATABASE "slugs_test" ENCODING = 'utf8' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.6ms) CREATE TABLE "categories" ("id" serial primary key, "name" character varying, "shop_id" integer, "slug" character varying)  (2.1ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "shop_id" integer, "category_id" integer, "slug" character varying)   (2.0ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "slug" character varying)  (2.0ms) CREATE TABLE "users" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "slug" character varying)   (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20161016174225')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20161016174020')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20161016174126')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20161016174202') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ---------------------- RecordsTest: test_save ----------------------  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (4.3ms) COMMIT ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.3ms) COMMIT Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ---------------------- RecordsTest: test_save ----------------------  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (4.3ms) COMMIT ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.3ms) COMMIT Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "shops"  (1.7ms) SELECT COUNT(*) FROM "users"  (1.7ms) SELECT COUNT(*) FROM "products"  (1.7ms) SELECT COUNT(*) FROM "categories"  (0.4ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "shops" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.3ms) SELECT COUNT(*) FROM "shops" Shop Load (0.4ms) SELECT "shops".* FROM "shops"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 25]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 26]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 27]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 28]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 29]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 30]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.3ms) SELECT COUNT(*) FROM "shops" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ---------------------- Shop Load (0.6ms) SELECT "shops".* FROM "shops"  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 25]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 26]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 27]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 28]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 29]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 30]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.7ms) SELECT COUNT(*) FROM "shops" Shop Load (0.7ms) SELECT "shops".* FROM "shops"  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 25]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 26]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 27]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 28]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 29]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 30]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.3ms) SELECT COUNT(*) FROM "shops" SQL (0.4ms) DELETE FROM "shops" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.3ms) SELECT COUNT(*) FROM "shops" SQL (0.7ms) DELETE FROM "shops" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.3ms) SELECT COUNT(*) FROM "shops" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- RecordTest: test_uniqueness ---------------------------  (0.3ms) SELECT COUNT(*) FROM "shops" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------- RecordTest: test_save ---------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- RecordTest: test_uniqueness ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------------- RecordTest: test_save_asfasdffsda_ ----------------------------------  (0.3ms) SELECT COUNT(*) FROM "shops" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------- RecordTest: test_save ---------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- RecordTest: test_uniqueness ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------- RecordTest: test_save ---------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "shops" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------- RecordTest: test_save ---------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.9ms) SELECT COUNT(*) FROM "shops"  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 [["slug", "guitar-shop"]] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------- RecordTest: test_save ---------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------- RecordTest: test_save ---------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 55]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- RecordTest: test_uniqueness ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 56]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 57]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- RecordTest: test_uniqueness ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 58]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 59]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------- RecordTest: test_save ---------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 60]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 2]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------- RecordTest: test_save ---------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 61]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 3]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- RecordTest: test_uniqueness ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 62]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 63]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-63' WHERE "shops"."id" = $1 [["id", 63]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 63], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 63], ["slug", "gibson"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 63], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 63], ["slug", "gibson"], ["id", 2]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-2' WHERE "categories"."id" = $1 [["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 63], ["category_id", 2], ["slug", "les-paul"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (16.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20161016174020)  (0.2ms) BEGIN  (14.5ms) CREATE TABLE "users" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "slug" character varying)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174020"]]  (4.8ms) COMMIT Migrating to CreateShops (20161016174126)  (6.1ms) BEGIN  (14.9ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "slug" character varying)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174126"]]  (5.0ms) COMMIT Migrating to CreateProducts (20161016174202)  (0.2ms) BEGIN  (1.9ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "shop_id" integer, "category_id" integer, "slug" character varying)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174202"]]  (0.3ms) COMMIT Migrating to CreateCategories (20161016174225)  (6.0ms) BEGIN  (13.1ms) CREATE TABLE "categories" ("id" serial primary key, "name" character varying, "shop_id" integer, "slug" character varying)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174225"]]  (6.0ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'categories' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'products' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'shops' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'users' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------- RecordTest: test_save ---------------------  (0.2ms) SAVEPOINT active_record_1 SQL (6.5ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.3ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- RecordTest: test_uniqueness ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 3]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-3' WHERE "shops"."id" = $1 [["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (6.5ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 3], ["slug", "gibson"]]  (0.3ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 3], ["slug", "gibson"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 3], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 3], ["slug", "gibson"], ["id", 2]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-2' WHERE "categories"."id" = $1 [["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 3], ["category_id", 2], ["slug", "les-paul"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------- RecordTest: test_save ---------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- RecordTest: test_uniqueness ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.1ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 6]] SQL (0.1ms) UPDATE "shops" SET "slug" = 'guitar-shop-6' WHERE "shops"."id" = $1 [["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 6], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 6], ["slug", "gibson"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 6], ["slug", "gibson"]]  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 6], ["slug", "gibson"], ["id", 4]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-4' WHERE "categories"."id" = $1 [["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 6], ["category_id", 4], ["slug", "les-paul"]]  (0.4ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 6], ["category_id", 4], ["slug", "les-paul"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 6], ["category_id", 4], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 6], ["category_id", 4], ["slug", "les-paul"], ["id", 3]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-3' WHERE "products"."id" = $1 [["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------- RecordTest: test_save ---------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.7ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 7]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.3ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 3]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- RecordTest: test_uniqueness ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 9]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-9' WHERE "shops"."id" = $1 [["id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 9], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 9], ["slug", "gibson"], ["id", 5]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 9], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 9], ["slug", "gibson"], ["id", 6]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-6' WHERE "categories"."id" = $1 [["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 9], ["category_id", 6], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 9], ["category_id", 6], ["slug", "les-paul"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 9], ["category_id", 6], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 9], ["category_id", 6], ["slug", "les-paul"], ["id", 5]] SQL (0.3ms) UPDATE "products" SET "slug" = 'les-paul-5' WHERE "products"."id" = $1 [["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 11]] SQL (0.3ms) UPDATE "shops" SET "slug" = 'guitar-shop-11' WHERE "shops"."id" = $1 [["id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 11], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 11], ["slug", "gibson"], ["id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 11], ["slug", "gibson"]]  (0.3ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 11], ["slug", "gibson"], ["id", 8]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-8' WHERE "categories"."id" = $1 [["id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 11], ["category_id", 8], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 11], ["category_id", 8], ["slug", "les-paul"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 11], ["category_id", 8], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 11], ["category_id", 8], ["slug", "les-paul"], ["id", 7]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-7' WHERE "products"."id" = $1 [["id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 4]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 5]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 5]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 15]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-15' WHERE "shops"."id" = $1 [["id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 15], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 15], ["slug", "gibson"], ["id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 15], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 15], ["slug", "gibson"], ["id", 10]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-10' WHERE "categories"."id" = $1 [["id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 15], ["category_id", 10], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 15], ["category_id", 10], ["slug", "les-paul"], ["id", 8]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 15], ["category_id", 10], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 15], ["category_id", 10], ["slug", "les-paul"], ["id", 9]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-9' WHERE "products"."id" = $1 [["id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 16]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 17]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 18]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 6]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 6]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 6]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.5ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.7ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 19]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 20]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-20' WHERE "shops"."id" = $1 [["id", 20]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.7ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 20], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 20], ["slug", "gibson"], ["id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 20], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 20], ["slug", "gibson"], ["id", 12]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-12' WHERE "categories"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 20], ["category_id", 12], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 20], ["category_id", 12], ["slug", "les-paul"], ["id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 20], ["category_id", 12], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 20], ["category_id", 12], ["slug", "les-paul"], ["id", 11]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-11' WHERE "products"."id" = $1 [["id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 21]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 22]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 23]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-23' WHERE "shops"."id" = $1 [["id", 23]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 23], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 23], ["slug", "gibson"], ["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 23], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 23], ["slug", "gibson"], ["id", 14]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-14' WHERE "categories"."id" = $1 [["id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 23], ["category_id", 14], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 23], ["category_id", 14], ["slug", "les-paul"], ["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 23], ["category_id", 14], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 23], ["category_id", 14], ["slug", "les-paul"], ["id", 13]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-13' WHERE "products"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 24]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 7]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 25]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 26]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 27]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-27' WHERE "shops"."id" = $1 [["id", 27]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 27], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 27], ["slug", "gibson"], ["id", 15]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 27], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 27], ["slug", "gibson"], ["id", 16]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-16' WHERE "categories"."id" = $1 [["id", 16]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 27], ["category_id", 16], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 27], ["category_id", 16], ["slug", "les-paul"], ["id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 27], ["category_id", 16], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 27], ["category_id", 16], ["slug", "les-paul"], ["id", 15]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-15' WHERE "products"."id" = $1 [["id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 28]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 8]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 29]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 30]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 9]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 9]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 31]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 32]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-32' WHERE "shops"."id" = $1 [["id", 32]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 32], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 32], ["slug", "gibson"], ["id", 17]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 32], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 32], ["slug", "gibson"], ["id", 18]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-18' WHERE "categories"."id" = $1 [["id", 18]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 32], ["category_id", 18], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 32], ["category_id", 18], ["slug", "les-paul"], ["id", 16]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 32], ["category_id", 18], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 32], ["category_id", 18], ["slug", "les-paul"], ["id", 17]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-17' WHERE "products"."id" = $1 [["id", 17]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 33]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 34]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 10]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 10]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 35]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 36]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-36' WHERE "shops"."id" = $1 [["id", 36]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 36], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 36], ["slug", "gibson"], ["id", 19]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 36], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 36], ["slug", "gibson"], ["id", 20]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-20' WHERE "categories"."id" = $1 [["id", 20]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 36], ["category_id", 20], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 36], ["category_id", 20], ["slug", "les-paul"], ["id", 18]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 36], ["category_id", 20], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 36], ["category_id", 20], ["slug", "les-paul"], ["id", 19]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-19' WHERE "products"."id" = $1 [["id", 19]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 37]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.3ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 11]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 38]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 39]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-39' WHERE "shops"."id" = $1 [["id", 39]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 39], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 39], ["slug", "gibson"], ["id", 21]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 39], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 39], ["slug", "gibson"], ["id", 22]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-22' WHERE "categories"."id" = $1 [["id", 22]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 39], ["category_id", 22], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 39], ["category_id", 22], ["slug", "les-paul"], ["id", 20]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 39], ["category_id", 22], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 39], ["category_id", 22], ["slug", "les-paul"], ["id", 21]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-21' WHERE "products"."id" = $1 [["id", 21]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 40]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 41]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 12]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 42]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 43]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-43' WHERE "shops"."id" = $1 [["id", 43]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 43], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 43], ["slug", "gibson"], ["id", 23]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 43], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 43], ["slug", "gibson"], ["id", 24]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-24' WHERE "categories"."id" = $1 [["id", 24]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 43], ["category_id", 24], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 43], ["category_id", 24], ["slug", "les-paul"], ["id", 22]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 43], ["category_id", 24], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 43], ["category_id", 24], ["slug", "les-paul"], ["id", 23]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-23' WHERE "products"."id" = $1 [["id", 23]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 44]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 45]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.3ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 13]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 46]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 47]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-47' WHERE "shops"."id" = $1 [["id", 47]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 47], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 47], ["slug", "gibson"], ["id", 25]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 47], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 47], ["slug", "gibson"], ["id", 26]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-26' WHERE "categories"."id" = $1 [["id", 26]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 47], ["category_id", 26], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 47], ["category_id", 26], ["slug", "les-paul"], ["id", 24]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 47], ["category_id", 26], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 47], ["category_id", 26], ["slug", "les-paul"], ["id", 25]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-25' WHERE "products"."id" = $1 [["id", 25]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 48]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 49]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 14]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 50]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 51]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-51' WHERE "shops"."id" = $1 [["id", 51]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 51], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 51], ["slug", "gibson"], ["id", 27]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 51], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 51], ["slug", "gibson"], ["id", 28]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-28' WHERE "categories"."id" = $1 [["id", 28]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 51], ["category_id", 28], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 51], ["category_id", 28], ["slug", "les-paul"], ["id", 26]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 51], ["category_id", 28], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 51], ["category_id", 28], ["slug", "les-paul"], ["id", 27]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-27' WHERE "products"."id" = $1 [["id", 27]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 52]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 55]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-55' WHERE "shops"."id" = $1 [["id", 55]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 55], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 55], ["slug", "gibson"], ["id", 29]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 55], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 55], ["slug", "gibson"], ["id", 30]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-30' WHERE "categories"."id" = $1 [["id", 30]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 55], ["category_id", 30], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 55], ["category_id", 30], ["slug", "les-paul"], ["id", 28]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 55], ["category_id", 30], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 55], ["category_id", 30], ["slug", "les-paul"], ["id", 29]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-29' WHERE "products"."id" = $1 [["id", 29]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 56]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 15]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 57]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 58]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 59]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 60]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-60' WHERE "shops"."id" = $1 [["id", 60]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 60], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 60], ["slug", "gibson"], ["id", 31]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 60], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 60], ["slug", "gibson"], ["id", 32]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-32' WHERE "categories"."id" = $1 [["id", 32]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 60], ["category_id", 32], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 60], ["category_id", 32], ["slug", "les-paul"], ["id", 30]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 60], ["category_id", 32], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 60], ["category_id", 32], ["slug", "les-paul"], ["id", 31]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-31' WHERE "products"."id" = $1 [["id", 31]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 61]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 16]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 16]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 16]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 62]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 63]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 17]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 17]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 17]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 64]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 65]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-65' WHERE "shops"."id" = $1 [["id", 65]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 65], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 65], ["slug", "gibson"], ["id", 33]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 65], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 65], ["slug", "gibson"], ["id", 34]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-34' WHERE "categories"."id" = $1 [["id", 34]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 65], ["category_id", 34], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 65], ["category_id", 34], ["slug", "les-paul"], ["id", 32]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 65], ["category_id", 34], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 65], ["category_id", 34], ["slug", "les-paul"], ["id", 33]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-33' WHERE "products"."id" = $1 [["id", 33]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 66]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 67]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 68]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-68' WHERE "shops"."id" = $1 [["id", 68]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 68], ["slug", "gibson"]]  (0.3ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 68], ["slug", "gibson"], ["id", 35]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 68], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 68], ["slug", "gibson"], ["id", 36]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-36' WHERE "categories"."id" = $1 [["id", 36]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 68], ["category_id", 36], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 68], ["category_id", 36], ["slug", "les-paul"], ["id", 34]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 68], ["category_id", 36], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 68], ["category_id", 36], ["slug", "les-paul"], ["id", 35]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-35' WHERE "products"."id" = $1 [["id", 35]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 69]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 18]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 18]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 18]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 70]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 71]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 19]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 19]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 19]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 72]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 73]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-73' WHERE "shops"."id" = $1 [["id", 73]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 73], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 73], ["slug", "gibson"], ["id", 37]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 73], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 73], ["slug", "gibson"], ["id", 38]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-38' WHERE "categories"."id" = $1 [["id", 38]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 73], ["category_id", 38], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 73], ["category_id", 38], ["slug", "les-paul"], ["id", 36]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 73], ["category_id", 38], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 73], ["category_id", 38], ["slug", "les-paul"], ["id", 37]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-37' WHERE "products"."id" = $1 [["id", 37]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 74]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 75]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 20]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 20]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 20]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.4ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 76]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 77]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-77' WHERE "shops"."id" = $1 [["id", 77]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 77], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 77], ["slug", "gibson"], ["id", 39]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 77], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 77], ["slug", "gibson"], ["id", 40]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-40' WHERE "categories"."id" = $1 [["id", 40]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 77], ["category_id", 40], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 77], ["category_id", 40], ["slug", "les-paul"], ["id", 38]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 77], ["category_id", 40], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 77], ["category_id", 40], ["slug", "les-paul"], ["id", 39]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-39' WHERE "products"."id" = $1 [["id", 39]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 78]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 79]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.4ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 80]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 81]] SQL (0.3ms) UPDATE "shops" SET "slug" = 'guitar-shop-81' WHERE "shops"."id" = $1 [["id", 81]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 81], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 81], ["slug", "gibson"], ["id", 41]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 81], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 81], ["slug", "gibson"], ["id", 42]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-42' WHERE "categories"."id" = $1 [["id", 42]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 81], ["category_id", 42], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 81], ["category_id", 42], ["slug", "les-paul"], ["id", 40]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 81], ["category_id", 42], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 81], ["category_id", 42], ["slug", "les-paul"], ["id", 41]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-41' WHERE "products"."id" = $1 [["id", 41]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 82]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 21]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 21]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 21]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 83]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 83], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 83], ["slug", "gibson"], ["id", 43]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 84]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 84], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 84], ["slug", "gibson"], ["id", 44]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 85]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 22]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 22]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 22]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 86]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 87]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-87' WHERE "shops"."id" = $1 [["id", 87]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 87], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 87], ["slug", "gibson"], ["id", 45]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 87], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 87], ["slug", "gibson"], ["id", 46]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-46' WHERE "categories"."id" = $1 [["id", 46]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 87], ["category_id", 46], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 87], ["category_id", 46], ["slug", "les-paul"], ["id", 42]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 87], ["category_id", 46], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 87], ["category_id", 46], ["slug", "les-paul"], ["id", 43]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-43' WHERE "products"."id" = $1 [["id", 43]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 88]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 89]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 90]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-90' WHERE "shops"."id" = $1 [["id", 90]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 90], ["slug", "gibson"]]  (0.4ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 90], ["slug", "gibson"], ["id", 47]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 90], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 90], ["slug", "gibson"], ["id", 48]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-48' WHERE "categories"."id" = $1 [["id", 48]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 90], ["category_id", 48], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 90], ["category_id", 48], ["slug", "les-paul"], ["id", 44]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 90], ["category_id", 48], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 90], ["category_id", 48], ["slug", "les-paul"], ["id", 45]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-45' WHERE "products"."id" = $1 [["id", 45]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 91]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 23]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 23]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 23]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 92]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- RoutesTest: test_generation ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 93]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 93], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 93], ["slug", "gibson"], ["id", 49]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 94]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.3ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 24]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 24]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 24]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 95]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 96]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-96' WHERE "shops"."id" = $1 [["id", 96]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 96], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 96], ["slug", "gibson"], ["id", 50]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 96], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 96], ["slug", "gibson"], ["id", 51]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-51' WHERE "categories"."id" = $1 [["id", 51]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 96], ["category_id", 51], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 96], ["category_id", 51], ["slug", "les-paul"], ["id", 46]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 96], ["category_id", 51], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 96], ["category_id", 51], ["slug", "les-paul"], ["id", 47]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-47' WHERE "products"."id" = $1 [["id", 47]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 97]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 98]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 25]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 25]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 25]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 99]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 100]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-100' WHERE "shops"."id" = $1 [["id", 100]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 100], ["slug", "gibson"]]  (0.3ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 100], ["slug", "gibson"], ["id", 52]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 100], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 100], ["slug", "gibson"], ["id", 53]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-53' WHERE "categories"."id" = $1 [["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 100], ["category_id", 53], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 100], ["category_id", 53], ["slug", "les-paul"], ["id", 48]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 100], ["category_id", 53], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 100], ["category_id", 53], ["slug", "les-paul"], ["id", 49]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-49' WHERE "products"."id" = $1 [["id", 49]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 101]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 102]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 26]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 26]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 26]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 103]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 104]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-104' WHERE "shops"."id" = $1 [["id", 104]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 104], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 104], ["slug", "gibson"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 104], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 104], ["slug", "gibson"], ["id", 55]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-55' WHERE "categories"."id" = $1 [["id", 55]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 104], ["category_id", 55], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 104], ["category_id", 55], ["slug", "les-paul"], ["id", 50]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 104], ["category_id", 55], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 104], ["category_id", 55], ["slug", "les-paul"], ["id", 51]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-51' WHERE "products"."id" = $1 [["id", 51]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 105]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 106]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 27]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 27]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 27]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 107]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 108]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-108' WHERE "shops"."id" = $1 [["id", 108]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 108], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 108], ["slug", "gibson"], ["id", 56]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 108], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 108], ["slug", "gibson"], ["id", 57]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-57' WHERE "categories"."id" = $1 [["id", 57]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 108], ["category_id", 57], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 108], ["category_id", 57], ["slug", "les-paul"], ["id", 52]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 108], ["category_id", 57], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 108], ["category_id", 57], ["slug", "les-paul"], ["id", 53]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-53' WHERE "products"."id" = $1 [["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 109]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 110]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 28]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 28]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 28]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 111]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 112]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-112' WHERE "shops"."id" = $1 [["id", 112]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 112], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 112], ["slug", "gibson"], ["id", 58]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 112], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 112], ["slug", "gibson"], ["id", 59]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-59' WHERE "categories"."id" = $1 [["id", 59]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 112], ["category_id", 59], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 112], ["category_id", 59], ["slug", "les-paul"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 112], ["category_id", 59], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 112], ["category_id", 59], ["slug", "les-paul"], ["id", 55]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-55' WHERE "products"."id" = $1 [["id", 55]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.3ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 29]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 29]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 29]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 113]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 114]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-114' WHERE "shops"."id" = $1 [["id", 114]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 114], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 114], ["slug", "gibson"], ["id", 60]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 114], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 114], ["slug", "gibson"], ["id", 61]] SQL (0.3ms) UPDATE "categories" SET "slug" = 'gibson-61' WHERE "categories"."id" = $1 [["id", 61]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.3ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 114], ["category_id", 61], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 114], ["category_id", 61], ["slug", "les-paul"], ["id", 56]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 114], ["category_id", 61], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 114], ["category_id", 61], ["slug", "les-paul"], ["id", 57]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-57' WHERE "products"."id" = $1 [["id", 57]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 115]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 116]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 117]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 118]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 119]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 120]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-120' WHERE "shops"."id" = $1 [["id", 120]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 120], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 120], ["slug", "gibson"], ["id", 62]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 120], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 120], ["slug", "gibson"], ["id", 63]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-63' WHERE "categories"."id" = $1 [["id", 63]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 120], ["category_id", 63], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 120], ["category_id", 63], ["slug", "les-paul"], ["id", 58]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 120], ["category_id", 63], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 120], ["category_id", 63], ["slug", "les-paul"], ["id", 59]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-59' WHERE "products"."id" = $1 [["id", 59]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 30]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 30]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 30]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 121]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 122]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-122' WHERE "shops"."id" = $1 [["id", 122]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 122], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 122], ["slug", "gibson"], ["id", 64]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 122], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 122], ["slug", "gibson"], ["id", 65]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-65' WHERE "categories"."id" = $1 [["id", 65]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 122], ["category_id", 65], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 122], ["category_id", 65], ["slug", "les-paul"], ["id", 60]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 122], ["category_id", 65], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 122], ["category_id", 65], ["slug", "les-paul"], ["id", 61]] SQL (0.3ms) UPDATE "products" SET "slug" = 'les-paul-61' WHERE "products"."id" = $1 [["id", 61]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 31]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 31]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 31]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 123]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 124]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.3ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 32]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 32]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 32]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 125]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 126]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-126' WHERE "shops"."id" = $1 [["id", 126]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 126], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 126], ["slug", "gibson"], ["id", 66]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 126], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 126], ["slug", "gibson"], ["id", 67]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-67' WHERE "categories"."id" = $1 [["id", 67]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 126], ["category_id", 67], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 126], ["category_id", 67], ["slug", "les-paul"], ["id", 62]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 126], ["category_id", 67], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 126], ["category_id", 67], ["slug", "les-paul"], ["id", 63]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-63' WHERE "products"."id" = $1 [["id", 63]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 127]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 128]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 33]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 33]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 33]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 129]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.1ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 130]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-130' WHERE "shops"."id" = $1 [["id", 130]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 130], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 130], ["slug", "gibson"], ["id", 68]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 130], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 130], ["slug", "gibson"], ["id", 69]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-69' WHERE "categories"."id" = $1 [["id", 69]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 130], ["category_id", 69], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 130], ["category_id", 69], ["slug", "les-paul"], ["id", 64]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 130], ["category_id", 69], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 130], ["category_id", 69], ["slug", "les-paul"], ["id", 65]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-65' WHERE "products"."id" = $1 [["id", 65]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 131]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 132]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.5ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'zakk-wylde' AND ("users"."id" != 34)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = 34 [["slug", "yngwie-malmsteen"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'yngwie-malmsteen' AND ("users"."id" != 34)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 133)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 134) SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-134' WHERE "shops"."id" = 134  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (3.1ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 134], ["slug", "gibson"]]  (0.3ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 134 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 70)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 134], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 134 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 71) SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-71' WHERE "categories"."id" = 71  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 71], ["name", "Les Paul"], ["shop_id", 134], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 134 AND "products"."category_id" = 71 AND "products"."slug" = 'les-paul' AND ("products"."id" != 66)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 71], ["name", "Les Paul"], ["shop_id", 134], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 134 AND "products"."category_id" = 71 AND "products"."slug" = 'les-paul' AND ("products"."id" != 67) SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-67' WHERE "products"."id" = 67  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 135)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 136)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.5ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'zakk-wylde' AND ("users"."id" != 35)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = 35 [["slug", "yngwie-malmsteen"]]  (0.4ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'yngwie-malmsteen' AND ("users"."id" != 35)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 137)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 138) SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-138' WHERE "shops"."id" = 138  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 138], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 138 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 72)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 138], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 138 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 73) SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-73' WHERE "categories"."id" = 73  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 73], ["name", "Les Paul"], ["shop_id", 138], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 138 AND "products"."category_id" = 73 AND "products"."slug" = 'les-paul' AND ("products"."id" != 68)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 73], ["name", "Les Paul"], ["shop_id", 138], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 138 AND "products"."category_id" = 73 AND "products"."slug" = 'les-paul' AND ("products"."id" != 69) SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-69' WHERE "products"."id" = 69  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 139)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 140)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.8ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 141)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.4ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 142)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 143)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.5ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 144)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 145)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 146)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 147)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 148)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.7ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 149)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.6ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 150)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 151)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 152)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 153)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 154)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 155)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 156)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 157)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 158)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 159)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 160)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 161)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 162)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 163)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.4ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 164)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 165)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 166)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 167)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 168)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 169)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.4ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 170)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 171)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 172)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 173)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 174)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.6ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 175)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 176)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 177)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 178)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 179)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 180)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.6ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 181)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 182)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.6ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 183)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 184)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.5ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 185)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 186)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.5ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'zakk-wylde' AND ("users"."id" != 36)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = 36 [["slug", "yngwie-malmsteen"]]  (0.4ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'yngwie-malmsteen' AND ("users"."id" != 36)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 187)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 188) SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-188' WHERE "shops"."id" = 188  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 188], ["slug", "gibson"]]  (0.3ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 188 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 74)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 188], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 188 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 75) SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-75' WHERE "categories"."id" = 75  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 75], ["name", "Les Paul"], ["shop_id", 188], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 188 AND "products"."category_id" = 75 AND "products"."slug" = 'les-paul' AND ("products"."id" != 70)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 75], ["name", "Les Paul"], ["shop_id", 188], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 188 AND "products"."category_id" = 75 AND "products"."slug" = 'les-paul' AND ("products"."id" != 71) SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-71' WHERE "products"."id" = 71  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 189)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 190)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.6ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'zakk-wylde' AND ("users"."id" != 37)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = 37 [["slug", "yngwie-malmsteen"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'yngwie-malmsteen' AND ("users"."id" != 37)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 191)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 192) SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-192' WHERE "shops"."id" = 192  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 192], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 192 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 76)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 192], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 192 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 77) SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-77' WHERE "categories"."id" = 77  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 77], ["name", "Les Paul"], ["shop_id", 192], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 192 AND "products"."category_id" = 77 AND "products"."slug" = 'les-paul' AND ("products"."id" != 72)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 77], ["name", "Les Paul"], ["shop_id", 192], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 192 AND "products"."category_id" = 77 AND "products"."slug" = 'les-paul' AND ("products"."id" != 73) SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-73' WHERE "products"."id" = 73  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 193)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 194)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.5ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'zakk-wylde' AND ("users"."id" != 38)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = 38 [["slug", "yngwie-malmsteen"]]  (0.3ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'yngwie-malmsteen' AND ("users"."id" != 38)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 195)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 196) SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-196' WHERE "shops"."id" = 196  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 196], ["slug", "gibson"]]  (0.3ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 196 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 78)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 196], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 196 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 79) SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-79' WHERE "categories"."id" = 79  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 79], ["name", "Les Paul"], ["shop_id", 196], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 196 AND "products"."category_id" = 79 AND "products"."slug" = 'les-paul' AND ("products"."id" != 74)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 79], ["name", "Les Paul"], ["shop_id", 196], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 196 AND "products"."category_id" = 79 AND "products"."slug" = 'les-paul' AND ("products"."id" != 75) SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-75' WHERE "products"."id" = 75  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 197)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 198)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.5ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'zakk-wylde' AND ("users"."id" != 39)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = 39 [["slug", "yngwie-malmsteen"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'yngwie-malmsteen' AND ("users"."id" != 39)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 199)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 200) SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-200' WHERE "shops"."id" = 200  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 200], ["slug", "gibson"]]  (0.3ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 200 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 80)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 200], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 200 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 81) SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-81' WHERE "categories"."id" = 81  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 81], ["name", "Les Paul"], ["shop_id", 200], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 200 AND "products"."category_id" = 81 AND "products"."slug" = 'les-paul' AND ("products"."id" != 76)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 81], ["name", "Les Paul"], ["shop_id", 200], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 200 AND "products"."category_id" = 81 AND "products"."slug" = 'les-paul' AND ("products"."id" != 77) SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-77' WHERE "products"."id" = 77  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 201)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 202)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.5ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'zakk-wylde' AND ("users"."id" != 40)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = 40 [["slug", "yngwie-malmsteen"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'yngwie-malmsteen' AND ("users"."id" != 40)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 203)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 204) SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-204' WHERE "shops"."id" = 204  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 204], ["slug", "gibson"]]  (0.3ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 204 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 82)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 204], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 204 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 83) SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-83' WHERE "categories"."id" = 83  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 83], ["name", "Les Paul"], ["shop_id", 204], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 204 AND "products"."category_id" = 83 AND "products"."slug" = 'les-paul' AND ("products"."id" != 78)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 83], ["name", "Les Paul"], ["shop_id", 204], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 204 AND "products"."category_id" = 83 AND "products"."slug" = 'les-paul' AND ("products"."id" != 79) SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-79' WHERE "products"."id" = 79  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 205)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 206)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.5ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'zakk-wylde' AND ("users"."id" != 41)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = 41 [["slug", "yngwie-malmsteen"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'yngwie-malmsteen' AND ("users"."id" != 41)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 207)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 208) SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-208' WHERE "shops"."id" = 208  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 208], ["slug", "gibson"]]  (0.3ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 208 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 84)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 208], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 208 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 85) SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-85' WHERE "categories"."id" = 85  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 85], ["name", "Les Paul"], ["shop_id", 208], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 208 AND "products"."category_id" = 85 AND "products"."slug" = 'les-paul' AND ("products"."id" != 80)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 85], ["name", "Les Paul"], ["shop_id", 208], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 208 AND "products"."category_id" = 85 AND "products"."slug" = 'les-paul' AND ("products"."id" != 81) SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-81' WHERE "products"."id" = 81  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 209)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 210)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.5ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'zakk-wylde' AND ("users"."id" != 42)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = 42 [["slug", "yngwie-malmsteen"]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'yngwie-malmsteen' AND ("users"."id" != 42)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 211)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 212) SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-212' WHERE "shops"."id" = 212  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 212], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 212 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 86)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 212], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 212 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 87) SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-87' WHERE "categories"."id" = 87  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 87], ["name", "Les Paul"], ["shop_id", 212], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 212 AND "products"."category_id" = 87 AND "products"."slug" = 'les-paul' AND ("products"."id" != 82)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 87], ["name", "Les Paul"], ["shop_id", 212], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 212 AND "products"."category_id" = 87 AND "products"."slug" = 'les-paul' AND ("products"."id" != 83) SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-83' WHERE "products"."id" = 83  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 213)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 214)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.5ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'zakk-wylde' AND ("users"."id" != 43)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = 43 [["slug", "yngwie-malmsteen"]]  (0.4ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'yngwie-malmsteen' AND ("users"."id" != 43)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.5ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 215)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 216) SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-216' WHERE "shops"."id" = 216  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 216], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 216 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 88)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 216], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 216 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 89) SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-89' WHERE "categories"."id" = 89  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 89], ["name", "Les Paul"], ["shop_id", 216], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 216 AND "products"."category_id" = 89 AND "products"."slug" = 'les-paul' AND ("products"."id" != 84)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 89], ["name", "Les Paul"], ["shop_id", 216], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 216 AND "products"."category_id" = 89 AND "products"."slug" = 'les-paul' AND ("products"."id" != 85) SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-85' WHERE "products"."id" = 85  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 217)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 218)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.5ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'zakk-wylde' AND ("users"."id" != 44)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = 44 [["slug", "yngwie-malmsteen"]]  (0.3ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'yngwie-malmsteen' AND ("users"."id" != 44)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 219)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 220) SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-220' WHERE "shops"."id" = 220  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 220], ["slug", "gibson"]]  (0.3ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 220 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 90)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 220], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 220 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 91) SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-91' WHERE "categories"."id" = 91  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 91], ["name", "Les Paul"], ["shop_id", 220], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 220 AND "products"."category_id" = 91 AND "products"."slug" = 'les-paul' AND ("products"."id" != 86)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 91], ["name", "Les Paul"], ["shop_id", 220], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 220 AND "products"."category_id" = 91 AND "products"."slug" = 'les-paul' AND ("products"."id" != 87) SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-87' WHERE "products"."id" = 87  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 221)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 222)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.5ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'zakk-wylde' AND ("users"."id" != 45)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = 45 [["slug", "yngwie-malmsteen"]]  (0.4ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'yngwie-malmsteen' AND ("users"."id" != 45)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.3ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 223)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 224) SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-224' WHERE "shops"."id" = 224  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 224], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 224 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 92)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 224], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 224 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 93) SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-93' WHERE "categories"."id" = 93  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 93], ["name", "Les Paul"], ["shop_id", 224], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 224 AND "products"."category_id" = 93 AND "products"."slug" = 'les-paul' AND ("products"."id" != 88)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 93], ["name", "Les Paul"], ["shop_id", 224], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 224 AND "products"."category_id" = 93 AND "products"."slug" = 'les-paul' AND ("products"."id" != 89) SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-89' WHERE "products"."id" = 89  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 225)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 226)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.5ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'zakk-wylde' AND ("users"."id" != 46)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = 46 [["slug", "yngwie-malmsteen"]]  (0.4ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = 'yngwie-malmsteen' AND ("users"."id" != 46)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 227)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 228) SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-228' WHERE "shops"."id" = 228  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 228], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 228 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 94)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 228], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = 228 AND "categories"."slug" = 'gibson' AND ("categories"."id" != 95) SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-95' WHERE "categories"."id" = 95  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 95], ["name", "Les Paul"], ["shop_id", 228], ["slug", "les-paul"]]  (0.3ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 228 AND "products"."category_id" = 95 AND "products"."slug" = 'les-paul' AND ("products"."id" != 90)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("category_id", "name", "shop_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["category_id", 95], ["name", "Les Paul"], ["shop_id", 228], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = 228 AND "products"."category_id" = 95 AND "products"."slug" = 'les-paul' AND ("products"."id" != 91) SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-91' WHERE "products"."id" = 91  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 229)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = 'guitar-shop' AND ("shops"."id" != 230)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------- RecordsTest: test_save ----------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "slug") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Zakk"], ["last_name", "Wylde"], ["slug", "zakk-wylde"]]  (0.3ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "zakk-wylde"], ["id", 47]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "slug" = $1 WHERE "users"."id" = $2 [["slug", "yngwie-malmsteen"], ["id", 47]]  (0.2ms) SELECT COUNT(*) FROM "users" WHERE "users"."slug" = $1 AND ("users"."id" != $2) [["slug", "yngwie-malmsteen"], ["id", 47]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- RecordsTest: test_uniqueness ----------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 231]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 232]] SQL (0.2ms) UPDATE "shops" SET "slug" = 'guitar-shop-232' WHERE "shops"."id" = $1 [["id", 232]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 232], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 232], ["slug", "gibson"], ["id", 96]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "categories" ("name", "shop_id", "slug") VALUES ($1, $2, $3) RETURNING "id" [["name", "Gibson"], ["shop_id", 232], ["slug", "gibson"]]  (0.2ms) SELECT COUNT(*) FROM "categories" WHERE "categories"."shop_id" = $1 AND "categories"."slug" = $2 AND ("categories"."id" != $3) [["shop_id", 232], ["slug", "gibson"], ["id", 97]] SQL (0.2ms) UPDATE "categories" SET "slug" = 'gibson-97' WHERE "categories"."id" = $1 [["id", 97]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 232], ["category_id", 97], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 232], ["category_id", 97], ["slug", "les-paul"], ["id", 92]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "category_id", "slug") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 232], ["category_id", 97], ["slug", "les-paul"]]  (0.2ms) SELECT COUNT(*) FROM "products" WHERE "products"."shop_id" = $1 AND "products"."category_id" = $2 AND "products"."slug" = $3 AND ("products"."id" != $4) [["shop_id", 232], ["category_id", 97], ["slug", "les-paul"], ["id", 93]] SQL (0.2ms) UPDATE "products" SET "slug" = 'les-paul-93' WHERE "products"."id" = $1 [["id", 93]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- RoutesTest: test_generator --------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 233]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- RoutesTest: test_optimized_url_helper -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "slug") VALUES ($1, $2) RETURNING "id" [["name", "Guitar Shop"], ["slug", "guitar-shop"]]  (0.2ms) SELECT COUNT(*) FROM "shops" WHERE "shops"."slug" = $1 AND ("shops"."id" != $2) [["slug", "guitar-shop"], ["id", 234]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK